Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
How to 'seek' in a database using ado?
I just had the user input some info with this command:
adoProject.Recordset.Fields("SSN").Value = Trim(InputBox("Enter SSN:"))
Now the info is in: textSSN.text
I would like to do a search of the table to see if the SSN is in the database or not. I'm guessing I would do a 'Seek' type command, but I'm not sure how to set it up. Here is what I'm guessing it should be close to:
If adoProject.Recordset.Seek(textSSN.text) Then
Can anyone tell me if this command would do what I want it to, and if so, how to set it up correctly?
0 · ·