K
Kate
Tried the following and get the message too few parameters
expected 3. The following statement gets highlighted:
Set rs = db.OpenRecordset("QueryAv")
Any idea? Thanks
Dim db As DAO.Database
Dim rs As DAO.Recordset
Set db = CurrentDb()
Set rs = db.OpenRecordset("QueryAv")
If rs![Booking ID] = 1 Then
DoCmd.OpenForm "SINGLE BOOKING DETAIL"
End If
rs.Close : Set rs = Nothing
Set db = Nothing
expected 3. The following statement gets highlighted:
Set rs = db.OpenRecordset("QueryAv")
Any idea? Thanks
Dim db As DAO.Database
Dim rs As DAO.Recordset
Set db = CurrentDb()
Set rs = db.OpenRecordset("QueryAv")
If rs![Booking ID] = 1 Then
DoCmd.OpenForm "SINGLE BOOKING DETAIL"
End If
rs.Close : Set rs = Nothing
Set db = Nothing