The OpenForm action was canceled
You used a method of the DoCmd object to carry out an action in Visual Basic, but then clicked Cancel in a dialog box.
stLinkCriteria = "[Employee_Courses].[COURSE_DATE]='" & Me.TrainingDate.Value & "' AND [LKPTrainingType].[TrainingTypeDesc]='" & Me.txtTrainingType & "' AND [SiteCode]='" & Forms!frmProperty!SiteCodeCombo & "' AND [BlockNo]='" & Forms!frmProperty!BlockCodeCombo & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
The value of stLinkCriteria is as follows:
[Employee_Courses].[COURSE_DATE]='22/03/2006' AND [LKPTrainingType].[TrainingTypeDesc]='Fire Induction' AND [SiteCode]='21800' AND [BlockNo]='01'
I have tried a variation (below) which works, but cannot see what's going on with the date.
[LKPTrainingType].[TrainingTypeDesc]='Fire Induction' AND [SiteCode]='21800' AND [BlockNo]='01'
Any help appreciated...
Regards,
Sean Anderson
__________________
Regards,
Sean Anderson
|