C
chris
I have created a form for a user to select values from
multiple combo boxes. From that I want to run a query
based on the select criteria after pressing a command
button. I have built the SQL query (i think) and want to
create and display the query. How do I do this? this is
what i have. what comes next? Thanks
Private Sub Command7_Click()
dateend = Me.cbodateend.Value
datestart = Me.cboDatestart.Value
media = Me.cboMediabox.Value
If IsNull(media) = True Then
MsgBox ("Please specify the meida")
End If
If IsNull(datestart) = True Then
MsgBox ("Please specify the starting date")
End If
If IsNull(dateend) = True Then
MsgBox ("Please specify the ending date")
End If
Dim strSQL As String
strSQL = "SELECT FROM (tbldata INNER .....
End Sub
multiple combo boxes. From that I want to run a query
based on the select criteria after pressing a command
button. I have built the SQL query (i think) and want to
create and display the query. How do I do this? this is
what i have. what comes next? Thanks
Private Sub Command7_Click()
dateend = Me.cbodateend.Value
datestart = Me.cboDatestart.Value
media = Me.cboMediabox.Value
If IsNull(media) = True Then
MsgBox ("Please specify the meida")
End If
If IsNull(datestart) = True Then
MsgBox ("Please specify the starting date")
End If
If IsNull(dateend) = True Then
MsgBox ("Please specify the ending date")
End If
Dim strSQL As String
strSQL = "SELECT FROM (tbldata INNER .....
End Sub