var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: Form - adding condition to command button
I have a command button that runs a query, which uses a date range that the user enters….
I need to write a piece a code where if there is no date entered… a message box appears saying “Please enter date range”…. If there is a date range entered, run command button as normal…
Thanks in advanced….
Attached is the form…
Oh and please stop attaching your database with every question - it's not always necessary and will just take up space!
If Nz(Me.txtDate.Value, "") = "" Then
MsgBox "No date range entered!"
cheers bud... will give it a go...