Microsoft
Software
Hardware
Network
Question : Data validation before moving to next record
I have an Access form with the navigations buttons enabled to the default yes. I wanted to create a small check of the data keyed in that before a user moves to the next record if
If Me.Received.Value = True and Me.DateHoldReleased is null then stop moving to the next record and set focus and require the "DateHoldReleased" is keyed in
So I basically need to make sure that once the Received checkbox is checked that a valid data is entered in the "DateHoldReleased"
how can I accomplish this?
Answer : Data validation before moving to next record
use the form's beforeupdate event
private sub form_beforeupdate(cancel as integer)
If Me.Received.Value = True and IsNull(Me.DateHoldReleased
) then
msgbox "required field"
me.DateHoldReleased.setfoc
us
cancel=true
end if
end sub
Random Solutions
css conditional statements for different browsers AND different resolutions?
Backup Exec will not connect server after move
Cisco ASA 5505 connecting to Internet through a Comcast Router
"404 - File not found" for Default .aspx on IIS 7.5
DPM 2010 - Agent Install Problem (On 2k3 DC)
Delphi & TWebBrowser issue ???
How to Combine The Data in Two Excel Sheet into One Using VBA
Raid 1 Rebuild Failed - Adaptec 1210SA
Unable to assign a resource to meeting in Outlook 2010
Change Username on SBS2008