suntsu
Programmer
- Aug 26, 2001
- 72
I need to be able to pass a string value depending on the success of the previous line of code...
There are eight update queries that are run, is there any way that i can check whether they have actually run or not ?
I tried the following but obviously doesn't work
==========================================================
strMsg = " Report on Database Update."
DoCmd.OpenQuery "qrycovmgr_cov_prodstage_job", acViewNormal, acEdit
If DoCmd.OpenQuery = True Then
strMsg = strMsg & "cov_prodstage_job - Successfull" & vbCrLf
Else
strMsg = strMsg & "cov_prodstage_job - Failed" & vbCrLf
End If
=========================================================
Any help appreciated ..
There are eight update queries that are run, is there any way that i can check whether they have actually run or not ?
I tried the following but obviously doesn't work
==========================================================
strMsg = " Report on Database Update."
DoCmd.OpenQuery "qrycovmgr_cov_prodstage_job", acViewNormal, acEdit
If DoCmd.OpenQuery = True Then
strMsg = strMsg & "cov_prodstage_job - Successfull" & vbCrLf
Else
strMsg = strMsg & "cov_prodstage_job - Failed" & vbCrLf
End If
=========================================================
Any help appreciated ..