I
iccsi
I have a query which works and use the SQL for my VBA coding using
currentdb.execute strSQL, dbFailOnError, but I got too few parameters,
expect 4.
There is no parameter in required in the query.
The code is like following:
Dim strMySQL As String
strMySQL = " UPDATE qryGroupMeeting INNER JOIN
tblEDAActivityMeetingDetails " & _
" ON qryGroupMeeting.Employee_ID = " & _
" tblEDAActivityMeetingDetails.CSR_ID " & _
" SET tblEDAActivityMeetingDetails.Status = 2 " & _
" WHERE (EDA_ID= " & cmbEDA.Value & ")" & _
" AND (ActivityDate= " & "#" & CDate(Int (dtpActivityDate.Value))
& "#" & ")" & _
" AND (Meetingtype= " & cmbMeetingType.Value & ")" & _
" AND (MeetingDate= " & "#" &
CDate(Int(dtpMeetingDate.Value)) & "#" & ")" & _
" AND (MeetingStartTime= " & "#" & dtpStartTime.Value &
"#" & ")" & _
" AND (MeetingElements= " & cmbMeetingElements.Value &
")"
MsgBox strMySQL, vbOKOnly
CurrentDb.Execute strMySQL, dbFailOnError
any information is great appreciated,
currentdb.execute strSQL, dbFailOnError, but I got too few parameters,
expect 4.
There is no parameter in required in the query.
The code is like following:
Dim strMySQL As String
strMySQL = " UPDATE qryGroupMeeting INNER JOIN
tblEDAActivityMeetingDetails " & _
" ON qryGroupMeeting.Employee_ID = " & _
" tblEDAActivityMeetingDetails.CSR_ID " & _
" SET tblEDAActivityMeetingDetails.Status = 2 " & _
" WHERE (EDA_ID= " & cmbEDA.Value & ")" & _
" AND (ActivityDate= " & "#" & CDate(Int (dtpActivityDate.Value))
& "#" & ")" & _
" AND (Meetingtype= " & cmbMeetingType.Value & ")" & _
" AND (MeetingDate= " & "#" &
CDate(Int(dtpMeetingDate.Value)) & "#" & ")" & _
" AND (MeetingStartTime= " & "#" & dtpStartTime.Value &
"#" & ")" & _
" AND (MeetingElements= " & cmbMeetingElements.Value &
")"
MsgBox strMySQL, vbOKOnly
CurrentDb.Execute strMySQL, dbFailOnError
any information is great appreciated,