J
JAMES FENNEL
I've got a database that tracks the use of Respirators on my ship. I've been
slowly updating an older existing database and trying to improve the
functionality of the forms. What I'm working on now is an Idiot Check to
check whenever a respirator is checked out a query is run to see if that
respirator number is already checked out. If so, a form opens that tells the
operator that number respirator is checked out. I've tried an IF..Then
statement but I get a Object Unknown response to the following statement:
Private Sub RespiratorNumber_LostFocus()
DoCmd.OpenQuery "Doubles", acViewNormal
If Me!RespiratorNumber = Doubles.RespiratorNumber and (Doubles.DateOut is
not Null and Doubles.DateIn is Null) then
DoCmd.OpenForm "Respirator Pop-Up", acNormal, , , acFormEdit, acWindowNormal
DoCmd.Close acQuery, "Doubles"
End Sub
Please Help ME!!!! What am I doing wrong and is there an easier way to do it?
James
slowly updating an older existing database and trying to improve the
functionality of the forms. What I'm working on now is an Idiot Check to
check whenever a respirator is checked out a query is run to see if that
respirator number is already checked out. If so, a form opens that tells the
operator that number respirator is checked out. I've tried an IF..Then
statement but I get a Object Unknown response to the following statement:
Private Sub RespiratorNumber_LostFocus()
DoCmd.OpenQuery "Doubles", acViewNormal
If Me!RespiratorNumber = Doubles.RespiratorNumber and (Doubles.DateOut is
not Null and Doubles.DateIn is Null) then
DoCmd.OpenForm "Respirator Pop-Up", acNormal, , , acFormEdit, acWindowNormal
DoCmd.Close acQuery, "Doubles"
End Sub
Please Help ME!!!! What am I doing wrong and is there an easier way to do it?
James