Dgavilanes
Registered User.
- Local time
- Today, 22:57
- Joined
- Jun 25, 2001
- Messages
- 109
CMD button to run selected query
Hi All,
When I use the following code in the cmd button I get a compile error
Sub Or Function not defined
Private Sub cmbQueries_Click()
Dim stDocName As String
If IsNull(Me!cmbQueries) Then
Call Message("Please select a query to edit.")
Else
stDocName = Me!cmbQueries
DoCmd.OpenQuery stDocName, AcFormView.acDesign, AcOpenDataMode.acEdit
End If
End Sub
Any assistance would be greatly appreciated
Dennis
Hi All,
When I use the following code in the cmd button I get a compile error
Sub Or Function not defined
Private Sub cmbQueries_Click()
Dim stDocName As String
If IsNull(Me!cmbQueries) Then
Call Message("Please select a query to edit.")
Else
stDocName = Me!cmbQueries
DoCmd.OpenQuery stDocName, AcFormView.acDesign, AcOpenDataMode.acEdit
End If
End Sub
Any assistance would be greatly appreciated
Dennis
Last edited: