D
dBNovice
The following code results in the error above:
Set rs = CurrentDb.OpenRecordset(strSQL, dbOpenDynaset)
If Not rs.RecordCount = 0 Then
If Not (rs!ACCEPTEDASPROPOSED = True Or rs!MODIFIED = True Or
rs!POSTER = True Or rs!WITHDRAWN = True Or rs!REJECTANDREUSE = True)
Then
DoCmd.OpenForm "frmModifySession"
ElseIf rs!ACCEPTEDASPROPOSED = True Or rs!MODIFIED = True Then
Response = MsgBox("Action has been taken on this
proposal. Do you still want to continue?", vbYesNo)
If Response = vbYes Then
DoCmd.OpenForm "frmModifySession"
End If
Can anyone tell me what I am doing wrong. I think there is a problem
when I try to set rs to open based on the SQL string. Some who tried
to help said I need a line of code like: Set db = CurrentDb (Set rs =
?????). I am in dire need. Please!!!!!!!!!!
Set rs = CurrentDb.OpenRecordset(strSQL, dbOpenDynaset)
If Not rs.RecordCount = 0 Then
If Not (rs!ACCEPTEDASPROPOSED = True Or rs!MODIFIED = True Or
rs!POSTER = True Or rs!WITHDRAWN = True Or rs!REJECTANDREUSE = True)
Then
DoCmd.OpenForm "frmModifySession"
ElseIf rs!ACCEPTEDASPROPOSED = True Or rs!MODIFIED = True Then
Response = MsgBox("Action has been taken on this
proposal. Do you still want to continue?", vbYesNo)
If Response = vbYes Then
DoCmd.OpenForm "frmModifySession"
End If
Can anyone tell me what I am doing wrong. I think there is a problem
when I try to set rs to open based on the SQL string. Some who tried
to help said I need a line of code like: Set db = CurrentDb (Set rs =
?????). I am in dire need. Please!!!!!!!!!!