Jump to content
Xtreme .Net Talk

Recommended Posts

Guest glendower
Posted

I'm trying to find a record from a recordset using the statement:

 

m_rstBookings.Find(" room_number = '" & roomnumber & "' and client_id = '" & clientid & "'

 

But it doesnt work, the syntax seems ok.

 

Basically I need to be able to identify a single record based on 2 (or more) parameters, room_number and client_id.

 

The recordset m_rstBookings contains the fields (amongst others) 'room_number' and 'client_id'

 

Am I correct in assuming that the Find statement only works on finds using a single field, if so how do I find a record using 2 or more fields.

 

Thanks

  • 3 weeks later...
Guest Gunthar
Posted

Hrmm in ADO.NET you don't use recordsets you use datasets. You could simply open a connection to your database and use an SQL statement to filter the dataset returned from the database. If you need example code on how to do this send me an e-mail: Phylum@Rogers.com

 

Gunthar

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...