lisabaker
Dec 2, 2014, 08:05 PM
Hi,
I have a problem with my VB code in Access saying 'Run-time error 3075': Syntax Error in query expression '[Survey Questions].*'
The code is as follows:
Private Sub Report_Open(Cancel As Integer)
'Declare Variables
Dim strR5 As String
Dim intSeminar As Integer
'Get the seminar from the Select Seminar form
intSeminar = Forms![Select Seminar]![cboSelectSeminar]
'Set the record source
strR5 = "SELECT [Survey Questions]. * FROM [Survey Questions] WHERE SeminarID =" & intSeminar <------- highlighted
Me.RecordSource = strR5
End Sub
Could someone help me out? My textbook is of no help.
Thanks in advance!
Lisa
I have a problem with my VB code in Access saying 'Run-time error 3075': Syntax Error in query expression '[Survey Questions].*'
The code is as follows:
Private Sub Report_Open(Cancel As Integer)
'Declare Variables
Dim strR5 As String
Dim intSeminar As Integer
'Get the seminar from the Select Seminar form
intSeminar = Forms![Select Seminar]![cboSelectSeminar]
'Set the record source
strR5 = "SELECT [Survey Questions]. * FROM [Survey Questions] WHERE SeminarID =" & intSeminar <------- highlighted
Me.RecordSource = strR5
End Sub
Could someone help me out? My textbook is of no help.
Thanks in advance!
Lisa