05-03-2011 03:11 PM
05-03-2011 03:26 PM
You should be able to write SQL commands to query the dBase. Something along the lines of Select * Where Subject Number = xxxxxxx
You could then check the size of the array being returned to make sure it's > 0.
Perhaps you could explain how you're connecitng to Access (which I have little experience with, I have used Microsoft SQL Server lots for similar tasks)
ActiveX I presume ? Another options is to note the error returned when the number does not exist and clear that (but only that) error.
If you want to post any code I can see if I can help further.
Good luck
Chris R
05-03-2011 09:22 PM
05-03-2011 09:26 PM
05-04-2011 03:01 AM
I will check that out when I get back in the office this evening and see if I can offer any more advice on what you're doing. I would check it right now but unfortunately I don't have 2010 on the laptop I am using at work. I have it at home so will check from there.
05-04-2011 03:46 PM
Jenny
Check out the atached code. One question I have for you is, Does the Fetch Recordset Data.vi throw an error if there is no matching data found (it looks like it should in the internal code but I have no way to test it) ?
If this is the case then the atached code should give you an idea how to deal with this.
I've also made a couple of small changes, maybe you're already aware that most of the controls that would be best suited to display database type records accept string data so I've given an example how to convert from variant data (the data type returned by the database vi's) to string data.
Hope this helps, any question please feel free to ask.