Firstly, why use a data control. See here why it is considered bad practise. :)
To solve your problem though, your FindFirst syntax should be like this -
data1.recordset.findfirst "mod = '405FD0'"
You will find ALL functions on the datacontrol here .
Happy coding...
AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350
Nope, a missing operator error refers to an incorrect select string. It is missing an ', ", = etc. which is why I took the () out of the equation. I do not use DAO (data access objects) because of this problems. Switch to ADO. You will then have a select query like -
rs.Open "SELECT * FROM YourTableNameHere WHERE mod = '" & txtMod.Text & "'",cn, AdOpenStatic, AdLockOptimistic
, or similar.
It has nothing to do with the value returned from your database, whether it is a hex value or not. Once you tell your app that it is a hex value, AFTER it showed up in your textbox, it will treat it as such.
I will have to try and recreate your scenario to test the the error, time is however not on my side at this moment, will post a solution a bit later on.;)
AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350