ClevelandMark

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Dec 2006
Posts: 2
Reputation: ClevelandMark is an unknown quantity at this point 
Solved Threads: 0
ClevelandMark ClevelandMark is offline Offline
Newbie Poster

ClevelandMark

 
0
  #1
Dec 28th, 2006
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,264
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: ClevelandMark

 
0
  #2
Dec 29th, 2006
Depends what you want to do.

When you find the same bar code what information to you want it to display.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Feb 2003
Posts: 793
Reputation: Paladine has a spectacular aura about Paladine has a spectacular aura about Paladine has a spectacular aura about 
Solved Threads: 27
Team Colleague
Paladine's Avatar
Paladine Paladine is offline Offline
Master Poster

Re: ClevelandMark

 
0
  #3
Dec 30th, 2006
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?
Assistant Manager, Pharmacy Informatics
Wordpress Learning Blog
Updated : ASP.Net Login Code
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 2
Reputation: ClevelandMark is an unknown quantity at this point 
Solved Threads: 0
ClevelandMark ClevelandMark is offline Offline
Newbie Poster

Re: ClevelandMark

 
0
  #4
Dec 30th, 2006
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC