Well that sounds a bit more ambitious than I think I really am.
I have written some code and looked at past posting trying to riddle this away . . to no avail, alas and alak!!
Someone please help here is the code, and yes the table is named "tbl" and form is named "frm" - it is an experimental db til I figure this out. . .
Dim db As DAO.Database
Dim rst As DAO.Recordset
Dim Name As String
Dim ID As String
Dim Information As String
Dim strSQL As String
Name = Nz([Forms]![frm]![txtName])
ID = Nz([Forms]![frm]![txtID])
Information = Nz([Forms]![frm]![txtInformation])
strSQL = "SELECT * FROM tbl"
strSQL = strSQL & " WHERE (([Name] = " & Name & "
"
strSQL = strSQL & " AND ([ID] = " & ID & "
"
strSQL = strSQL & " AND ([Information] = " & Information & "
);"
MsgBox strSQL, vbInformation
'to open up the record set
Set dbs = CurrentDb()
Set rst = dbs.OpenRecordset(strSQL) Brambojr
I have written some code and looked at past posting trying to riddle this away . . to no avail, alas and alak!!
Someone please help here is the code, and yes the table is named "tbl" and form is named "frm" - it is an experimental db til I figure this out. . .
Dim db As DAO.Database
Dim rst As DAO.Recordset
Dim Name As String
Dim ID As String
Dim Information As String
Dim strSQL As String
Name = Nz([Forms]![frm]![txtName])
ID = Nz([Forms]![frm]![txtID])
Information = Nz([Forms]![frm]![txtInformation])
strSQL = "SELECT * FROM tbl"
strSQL = strSQL & " WHERE (([Name] = " & Name & "
strSQL = strSQL & " AND ([ID] = " & ID & "
strSQL = strSQL & " AND ([Information] = " & Information & "
MsgBox strSQL, vbInformation
'to open up the record set
Set dbs = CurrentDb()
Set rst = dbs.OpenRecordset(strSQL) Brambojr