R
Rob W
Greetings,
I have the following code assigned to previous record navigation button (See
below) :-
How do I use the Is not null ??
Testing the code the Me.txtAwardId is populated but during the DCount
execution I get the error "The expression you entered as a query parameter
produced the error: 'StrAward'
Can anyone assist? Thanks
VBA code attached to button.
DoCmd.RunCommand acCmdRecordsGoToPrevious
Dim SAwards As Integer
Dim StrAward As String
'IsNotNull (Forms![frmCreateAward]!txtAwardId
StrAward = Me.txtAwardId
SAwards = DCount("[StudentID]", "tblStudent", "[AwardId] = StrAward")
Me.lblAwardStudentCount.Caption = "Total number of Awards enrolled on
the Award is : " & SAwards
'End If
Me.lblRecordNumber.Caption = "Award Record number: " & [CurrentRecord]
I have the following code assigned to previous record navigation button (See
below) :-
How do I use the Is not null ??
Testing the code the Me.txtAwardId is populated but during the DCount
execution I get the error "The expression you entered as a query parameter
produced the error: 'StrAward'
Can anyone assist? Thanks
VBA code attached to button.
DoCmd.RunCommand acCmdRecordsGoToPrevious
Dim SAwards As Integer
Dim StrAward As String
'IsNotNull (Forms![frmCreateAward]!txtAwardId
StrAward = Me.txtAwardId
SAwards = DCount("[StudentID]", "tblStudent", "[AwardId] = StrAward")
Me.lblAwardStudentCount.Caption = "Total number of Awards enrolled on
the Award is : " & SAwards
'End If
Me.lblRecordNumber.Caption = "Award Record number: " & [CurrentRecord]