Using Function key

cmw

Registered User.
Local time
Tomorrow, 01:54
Joined
Jan 21, 2008
Messages
46
Please anybody help me. Is it possible Event action perform using one Function key?
Eg I press F8, Ledger Form open it.
Any sample please post it.
 
Last edited:
Thank you very much khawar. Work well.Please another one i.e Form data is stored automatically. But I dont want this. Because I click save button Check Required field value it's ok then save form otherwise Message display.I Don't click save button but i close that form or take front record , current record Check Required field value not exist, that record is deleted. How I do it? any idea
 
You are great! It works well but I dont want save it, form clear then new record open it.
 
If MsgBox("Do you want to save this record", vbQuestion + vbYesNo + vbDefaultButton2, "Save Record") = vbYes Then
Else
DoCmd.CancelEvent
End If
Above coding, i want change it Else condition ,i.e I click No button current record clear it . New record open it. If you dont mine, Its my first project in ms access so no idea.
 
If MsgBox("Do you want to save this record", vbQuestion + vbYesNo + vbDefaultButton2, "Save Record") = vbYes Then
Else
me.undo
End If
 

Users who are viewing this thread

Back
Top Bottom