There are several disscussion on using cobo boxes to change information viewed in a form. In my case, I'm using a pop-up form (with a cobo box) to retrieve a record number. I can successfully pass this value to the form. However, I'm stumped on how to change the current record to a different record based on the "record number." Here are some of the methods that I've tried:
Me.Filter = "[RecordNumber] = varIndex'"
Me.FilterOn = True
also
Dim db As Database
Dim rs As Recordset
Dim strSQL As String
strSQL = "SELECT * FROM [tblMain] WHERE RecordNumber = " & varIndex & ""
Set db = CurrentDb()
Set rs = db.OpenRecordset(strSQL)
This has to be something simple -- I'm just missing what it is. Thanks for any assistance
Wally
Me.Filter = "[RecordNumber] = varIndex'"
Me.FilterOn = True
also
Dim db As Database
Dim rs As Recordset
Dim strSQL As String
strSQL = "SELECT * FROM [tblMain] WHERE RecordNumber = " & varIndex & ""
Set db = CurrentDb()
Set rs = db.OpenRecordset(strSQL)
This has to be something simple -- I'm just missing what it is. Thanks for any assistance
Wally