I am developing a quiz application in VB.Net . The UI is shown below.
The questions are generated randomly from a set of 500 questions and stored into an array. The questions are also stored in an arrray.
When the user clicks next another question and set of answers loads from the array "Questions".
The user should be able to go Back and go Next , when the user goes back he/she should see the value of answer for that question
Which VB.Net Control(s) should i use for this pls . Cause i was using multiple forms initially but it became inefficient since the questions were more than 5 Qusetions
Set new text to label on button click. To keep track of previous question, store the id of it somewhere. Settings for example.
Related
Please forgive me if this question is too vague or extensive. I have limited experience with Access, SQL, and VBA and have a problem at work that I just can't solve. I'm trying to add a "new button" button to the user interface on our Access database.
I would like it to maybe bring up another form that allows you to input a query you want to make into a quick link on the home page. Obviously this would only be accessible to certain users but I can handle that part.
I don't necessarily need the code written, just an idea of where to start. So far all I've been able to do is hard code a new query or link into a button each team I want to make one. I want this process to be simplified so that anybody can make a button even if they don't know how to use Access very well.
Again, any help would be greatly appreciated and feel free to tell me to get lost if this is too vast or general a question.
I would like it to maybe bring up another form that allows you to input a query
The above seems very confusing. You are asking how a form can be used or launched or displayed to allow the user to add a new record. Then you toss in this VERY unrelated concept of some query? What does some query have to do with adding a new record?
If you want to add a new record, and you are in a form that is displaying current records, then behind the button, you can execute this line of code to jump to a new record ready for data entry:
DoCmd.GoToRecord , , acNewRec
So, that is one line of code.
If you want to launch an existing form and have it start out with a new clean fresh record, then use this:
DoCmd.OpenForm "frmCustomers", , , , acFormAdd
The above will launch the given from in "add mode" and thus you are again on a new fresh record ready for data entry.
The issue(s) of some query etc. for the user What does that have to do with wanting the user to add a new record? So that part does not seem to apply to the basic idea of presenting a form with a new record which allows the user to add that record in question.
You have to explain what all the hub bub about this magic query issue but to jump a form to a new record for the user? Just use the first line of code behind a button.
And if you need to launch a form in "add mode", then use the 2nd example one line of code behind the button in question. None of this has really anything to do with some "query" in regards to you wanting the user to add a new record. You can expand on what you mean by some user query, but you have several options to jump an existing form to a new record, or launch a form in "add mode" to allow adding of a record. In these cases, you don't need nor want to write or deal with some SQL query.
I would like to apologize for my ignorance beforehand. I've studied some tutorials about ms access and i'm still quite lost. I am not sure how to phrase this question because I am not familiar with access terms and such.
I am trying to create a form with these problems
filling up a text box would allow me to select in a dropdown field related fields from the table.
e.g. putting uni in the textbox would show unicorn, unicode, university in the drop down
button that allows me to add more rows in this form.
e.g. clicking [add more rows] would generate a row of textboxes that are fillable
button that allows me to submit the whole form into the database (this would have to account for the growing number of rows based on the [add more rows])
a reset form button (i've read that some people just open and close the form in a button)
I have some knowledge of SQL but I am totally new to access. I would greatly appreciate links or some guide as to where I would be able to find these answers as I am quite confused as to what to google myself.
Thank you in advance
I have been trying to find an answer to this on the internet but with no success so far.
On a winform application I am working on, I have a principal form where users can fill a large datagrid (up to 1000 X 18) by either manually inserting value by value or pasting from an excel table (I already wrote the code for this). Also there are a few other forms where users can input other data through additional datagrids or textboxes. The Idea is to get the user to open each form, fill the data, and then close it and go to fill the next form. Input data will be a combination of boolean, double and strings. Then there is on the principal form a "CALCULATE" button which performs operations on data coming from all the previous forms and displays the results in a "OUTPUT" form with a datagrid and a panel (through graphics). My question are:
What is the best way to save data from each form so that if the users close and then reopen that form, the data inserted previously are displayed and ready to be modified,deleted etc. I considered writing and reading from a .txt or XML, using databases,.CSV, my.settings(), etc, but I would like to ask what would be the best way to do it.
How to write code that performs math operations using data that have been inserted on different forms, after these forms have been filled and then closed
How to save all data so that I close and then launch the application again, all data are still there.
Any help would be much appreciated, thanks
To start, I am using Access 2003 and have a similar project that works correctly that I designed.
I am stumped as to why a particular field will not change dynamically like every other field until I "refresh".
Currently I have a task list that lists all items that need to be works. Containing a Status: New, Open, Closed; The account number, person who is working it and more.
The tasklist is just a form with a subform with a datasheet view that opens the task when you double click it. If a user opens a task, that task will be locked until they move on. If any information that is viewed in the task list is changed, it dynamically updates, all but the Status (which really is the most important) until the user manually refreshes it.
Does anyone know what I need to look for that would cause this? The Status is stored as an integer that joins with it's true value. I thought this may be the reason, however I have a similar tool I designed does not have this issue.
I've look into how they are joined, the code that changes this value, everything seems the same between the working and not working.
Any advice?
Thanks in advance.
edit any fields that are JOINED, do not seem to dynamically update until I hit refresh. However, the other database has this working. What am I missing that is different between them.
Solved.
I changed the object displaying the field from a textbox to a combobox, showed two columns with widths 0";1" and it works.
I have searched thoroughly for an answer to my question concerning a direct way to update a dataviewgrid with the call of a subroutine. but i had to luck, so im going to post the question here, with a little bit of background code and detail to help further your understanding on whats going on.
So i have 2 forms currently one being frmMain, this form contains three buttons
btnAddItem - brings up frmAdd
btnSearch - no code yet
BtnPrint - no code yet
frm main also has a dataviewgrid - currently named dvgPEBGrid
i have this bound to a access database with the datasource named PEBTableBindingSource
now on to frmAdd
i have some fields that eventually get updated to the database
i successfully do this but after the form closes i cannot get the data grid to update
i have tried a lot of things and what usually happens is my data grid just clears all data and i can not get the grid to return data until i close program and reset. any suggestions would be greatly appreciated.