Here is sample VBA code:
If Me![ControlName] => 3 then
DoCmd.OpenForm "frmFormName"
End If
Where you put this code is up to you. Possibile in the OnClick Event procedure of a Command Button. Just update the red code above with your textbox name and the form name to make it work for your situation.
Post back with additional questions.
Bob Scriver Want the best answers? See FAQ181-2886 Nobody believes the official spokesman... but everybody trusts an unidentified source.
Author, Bagdad Bob???
i got a problem onli when the value is equal to 3 then the msgbox will appear,value greater than 3 does not make the msgbox appear...wat is wrong wif my code?...
If Me![Text21] >= 3 Then
MsgBox "xxx"
End If
the value is created in a subform countin the number of records..then show in main form...at the subform footer i put a textfield which count the records wif count(*)..then i show it in the textfield in main form...how can i do it...i try to count it in the subform but its still the same n it oso show the msgbox thrice...when i try to count it in the main form it could not work...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.