If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Is form read-only?
Mebbe I need a new brain....
I need to check if a form is open in read-only mode. I open it with:- If InVal = 150 Then DoCmd.OpenForm stDocName, , , stLinkCriteria, acFormReadOnly Else DoCmd.OpenForm stDocName, , , stLinkCriteria End If What do I need to do to check the open mode from within the opened form? TIA Steve |
#2
|
|||
|
|||
Is form read-only?
CyberDwarf wrote:
Mebbe I need a new brain.... I need to check if a form is open in read-only mode. I open it with:- If InVal = 150 Then DoCmd.OpenForm stDocName, , , stLinkCriteria, acFormReadOnly Else DoCmd.OpenForm stDocName, , , stLinkCriteria End If What do I need to do to check the open mode from within the opened form? The read only data mode sets the form's AllowEdits, AllowAdditions and AllowDeletions properties to False. -- Marsh MVP [MS Access] |
#3
|
|||
|
|||
Is form read-only?
On Wed, 15 Nov 2006 16:49:18 -0000, CyberDwarf wrote:
Mebbe I need a new brain.... I need to check if a form is open in read-only mode. I open it with:- If InVal = 150 Then DoCmd.OpenForm stDocName, , , stLinkCriteria, acFormReadOnly Else DoCmd.OpenForm stDocName, , , stLinkCriteria End If What do I need to do to check the open mode from within the opened form? TIA Steve In the form's Load event: If Me.AllowAdditions = False And Me.AllowDeletions = False _ And Me.AllowEdits = False Then MsgBox "Form is ReadOnly" Else MsgBox "Form is not read only" End If -- Fred Please respond only to this newsgroup. I do not reply to personal e-mail |
#4
|
|||
|
|||
Is form read-only?
Thanks to all for your responses.
I must be gettin senile ;-) Steve |
Thread Tools | |
Display Modes | |
|
|