| | |
ClevelandMark
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Dec 2006
Posts: 2
Reputation:
Solved Threads: 0
I am writing a VB.NET 2005 Win Form that is used with scanning a barcode. I have an Access db that I need to compare a barcode value in a textbox with a matching value in the datagridview.
I am thinking I should write a loop to locate the same value as the textbox value. If so, how would I do this?
Once I find the first instance of that value compare the Date/Time with a datediff, yes??
Thanks in advance,
CM
I am thinking I should write a loop to locate the same value as the textbox value. If so, how would I do this?
Once I find the first instance of that value compare the Date/Time with a datediff, yes??
Thanks in advance,
CM
You are correct in your logic approach for finding the same value.. which can be done various ways, depending on your method of populating the datagrid. But it is what works for your needs.
My question is about one question you asked: " Once I find the first instance of that value compare the Date/Time with a datediff, yes??"
Why are you doing a Date/Time compare?
This may be a minor point, because it would ultimately depend on what your application function is, but is there a reason for needing to do the date/time compare?
My question is about one question you asked: " Once I find the first instance of that value compare the Date/Time with a datediff, yes??"
Why are you doing a Date/Time compare?
This may be a minor point, because it would ultimately depend on what your application function is, but is there a reason for needing to do the date/time compare?
•
•
Join Date: Dec 2006
Posts: 2
Reputation:
Solved Threads: 0
Once the barcode is scanned, I want to check the data base for the same RX number...via some kind of loop I suppose, but not sure how to write that code. Just a simple Do/Loop I would guess....
In regards to the date/time, if I find the matching Rx number in the db I want the app to look at the date/time it was added to the db versus the current date/time. I most likely do this with a datediff. Correct??
Everything else I need to do I already have written the code.
Any assistance is appreciated!
Thanks again,
Happy New Year!
Mark
In regards to the date/time, if I find the matching Rx number in the db I want the app to look at the date/time it was added to the db versus the current date/time. I most likely do this with a datediff. Correct??
Everything else I need to do I already have written the code.
Any assistance is appreciated!
Thanks again,
Happy New Year!
Mark
![]() |
Other Threads in the VB.NET Forum
- Previous Thread: Best VB.net tutorial
- Next Thread: Population a dataset row by row based on criteria
| Thread Tools | Search this Thread |
.net .net2008 30minutes 2005 2008 access account arithmetic array basic binary bing button buttons center check code combobox component connectionstring crystalreport data database databasesearch datagrid datagridview date design dissertation dissertations dropdownlist excel fade file-dialog filter folder ftp generatetags google hardcopy images input insert intel internet mobile monitor ms net networking objects output panel passingparameters peertopeervideostreaming picturebox picturebox1 port position print printing problem problemwithinstallation project save searchbox searchvb.net select serial shutdown soap survey table tcp temperature text textbox timer timespan toolbox trim update updown user vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web winforms wpf year






