H
Hilary Ostrov
This is my first attempt at creating a strSQL (to use with Albert
Kallal's wonderful WordMerge!) and I seem to be doing something wrong:
Private Sub cmdWordMerge_Click()
Dim strSQL As String
If IsNull(Me.cboJobsite) = False Then
strSQL = "SELECT Jobsites!Site_Name," & "Jobsites!Site_Address," &
"Jobsites!City," & "Jobsites!PostalCode" & "FROM Jobsites " &
"WHERE(Jobsites!SiteID = & me.cboJobsite)"
MergeAllWord strSQL
End If
End Sub
Access (2003) seemed to think it's OK (or I assume it did, since I
wasn't getting any compile errors, but that may be unwarranted
optimism on my part!), but I'm getting a msg prompt from Albert's
program indicating that there's a problem with the above SQL
statement.
If someone could show me the error of my ways, I would be eternally
grateful
Thanks.
hro
Kallal's wonderful WordMerge!) and I seem to be doing something wrong:
Private Sub cmdWordMerge_Click()
Dim strSQL As String
If IsNull(Me.cboJobsite) = False Then
strSQL = "SELECT Jobsites!Site_Name," & "Jobsites!Site_Address," &
"Jobsites!City," & "Jobsites!PostalCode" & "FROM Jobsites " &
"WHERE(Jobsites!SiteID = & me.cboJobsite)"
MergeAllWord strSQL
End If
End Sub
Access (2003) seemed to think it's OK (or I assume it did, since I
wasn't getting any compile errors, but that may be unwarranted
optimism on my part!), but I'm getting a msg prompt from Albert's
program indicating that there's a problem with the above SQL
statement.
If someone could show me the error of my ways, I would be eternally
grateful
Thanks.
hro