N
neeley
I have code that returns the above message. Can someone
tell me what is incorrect?
Dim db as databse
dim rs as recordset
set db = CurrentDb
Set rs = db.OpenRecordset("SELECT * FROM Facility where
[Facility]![fac_Code] = " & Me!fac_Code)
If Not rs.EOF THEN
Me!fac_FacilityType = rs!fac_FacilityType
End If
rs.Close
db.Close
Set rs= Nothing
set db = Nothing
End Sub
The error occurs at the set rs= db.OpenRecordset line.
Thanks for any help.
tell me what is incorrect?
Dim db as databse
dim rs as recordset
set db = CurrentDb
Set rs = db.OpenRecordset("SELECT * FROM Facility where
[Facility]![fac_Code] = " & Me!fac_Code)
If Not rs.EOF THEN
Me!fac_FacilityType = rs!fac_FacilityType
End If
rs.Close
db.Close
Set rs= Nothing
set db = Nothing
End Sub
The error occurs at the set rs= db.OpenRecordset line.
Thanks for any help.