Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42448

Local Database in VB.NET Express 2010 Help

$
0
0
Hello everyone!

I have three problems with the local database in VB.NET that I would like some help with. (I'm new to using Local Databases in VB.NET...)

The first is about programatically writing to the database. I'm sure this is pretty simple, so it shouldn't take too much thought. Haha.

The user will start the program by clicking ready. It will send a string to the Serial Port telling a microcontroller to begin. It will be monitoring a small infrared and waiting for the beam to be broken. Next it will start a timer, and when something breaks the beam again, stop the timer. It will then send the information to the vb.net program, displayed in a label. The user will then enter the correct ID for the information, and click send to database. This will need to send the ID and the Time to the Database. If the user needs to edit the information, they will do so in DataGrid view.

The next involves a database searching for dates and then sending the information to certain labels for the user to see.

The program will automatically update the labels every Monday at 12am, by using the system clock. A database will have three columns. Date, Event Title, and Door Opening Time. The dates will only be on Saturdays and the program will only search for the next Saturday by using .AddDays. The program will then need to run a query for that date. If there is nothing then it will stop searching. If there is something, it needs to display the event title and date in those labels. So basically I need to know how to run a query for that certain date and instead of displaying that info in DataGrid view, displaying it in Labels.

The final is about the first problem (with the IDs and Times).

I need the program to be able to invert the 6 fastest times. The user will view (and edit) the information in DataGrid view and all of the information will be sorted by the Time column. (Fastest time first.) I need the top 6 IDs to become inverted. So the first place will be 6th, and so on. How would I do this??

Hope this makes sense! If you have any questions, just ask!

Thanks for all of your help.
- Ryan

Viewing all articles
Browse latest Browse all 42448

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>