Hi
I have got Code behind No Data Event as
Msgbox "No Data"
DoCmd.CancelEvent
I have also got a code behind my On Close event of report as
If Msgbox("Do You want to Insert date",VbYesNo)=VbYes Then
do something-----
end if
The problem is that if no data is found the message gets displayed but still it goes to On Close event and ask to Insert date. Is there any way getting around it?
Cheers!
Aqif
I have got Code behind No Data Event as
Msgbox "No Data"
DoCmd.CancelEvent
I have also got a code behind my On Close event of report as
If Msgbox("Do You want to Insert date",VbYesNo)=VbYes Then
do something-----
end if
The problem is that if no data is found the message gets displayed but still it goes to On Close event and ask to Insert date. Is there any way getting around it?
Cheers!
Aqif