You could try the following
If you have a main form insert the following code:
Option Compare DataBase
Option Explicit
Public bAllowClose as Boolean
Private Sub Form_Unload(Cancel as Integer)
Cancel = Not(bAllowClose)
End Sub
You would then include a button that the user has to use...
Is there a way to open a form using [highlight #FF99FF]Application.CurrentProject.ALLFORMS. [/highlight]
If have a treeview menu where the user selects the form to open, I'am currently using the DoCmd.OpenForm, which works fine. I however want to set an object variable to the form from the...
Private Sub Product_ID_AfterUpdate()
On Error GoTo Err_Product_ID_AfterUpdate
Dim strFilter As String
' Evaluate filter before it's passed to DLookup function.
strFilter = "[Product_ID] = '" & Me!Product_ID & "'"
' Look up product's unit price and assign it to...
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.