G
Guest
I have a frmReferral with read only data displayed in datasheet view - user
selects one record from datasheet view and clicks a cmdOpenForm which opens
fsubReferral with all the data for that record for editing. ReferralID links
the frmReferral selected datasheet record with the fsubReferral record. The
problem - if there is no records in the frmReferral datasheet and the user
clicks the cmdOpenForm anyway MS Office Access message box appears 'You
entered an expression that has no value". How can I customise this message
in the MsgBox.
noodleBrain
cmdOpenForm 'onclick' event
....stLinkCriteria = "[ReferralID]=" & Me.frmReferralSub![ReferralID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
selects one record from datasheet view and clicks a cmdOpenForm which opens
fsubReferral with all the data for that record for editing. ReferralID links
the frmReferral selected datasheet record with the fsubReferral record. The
problem - if there is no records in the frmReferral datasheet and the user
clicks the cmdOpenForm anyway MS Office Access message box appears 'You
entered an expression that has no value". How can I customise this message
in the MsgBox.
noodleBrain
cmdOpenForm 'onclick' event
....stLinkCriteria = "[ReferralID]=" & Me.frmReferralSub![ReferralID]
DoCmd.OpenForm stDocName, , , stLinkCriteria