Im doing up a database to keep track of records and im using a switcboard to keep track of it all and I want to be able to search for a record using vb code. If anyone could help Id appreciate it thanks.
Minimal SQL needs<br><br> Dim db as database, rst as recordset, SQL as string<br> Set db = CurrentDb<br> ' SQL string.<br> SQL = "SELECT * FROM Orders WHERE OrderDate >= #1-1-95#;"<br> Set rst = db.OpenRecordset(SQL) <p>DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br> Ask me how Bar-codes can help you be more productive.
here is what I have so far, its not really runnin properly and Im pretty much a novice yet so I dont really know whats wrong.<br><br>Private Sub cmd_find_Click()<br>'set the sql statement and set the list box recordsource<br>Dim myDb As Database<br>Dim myRst As Recordset<br>Set myDb = CurrentDb<br>Dim sql As String<br><br><br>sql =
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.