beginner's question about OpenForm error 2491 (1 Viewer)

mfriedenthal

New member
Local time
Today, 05:05
Joined
Sep 23, 2004
Messages
3
I created a form so that my users can enter a password. To reach this form I coded:

Code:
DocName = "Utilities Password Form"
DoCmd.OpenForm DocName, , A_READONLY

but I am getting the error:

"The action or method is invalid because the form or report isn't bound to a table or query"


This form is not meant to be bound to any table (or query). I have researched this and all the postings indicate that Access thinks I am trying to filter data but I don't think I am.

I have tried various cominations of modal and popup settings to no avail.

Can someone clarify what's going on here for me? How do I display this simple form?
 

Uncle Gizmo

Nifty Access Guy
Staff member
Local time
Today, 10:05
Joined
Jul 9, 2003
Messages
16,271
Not enough comma's it should be like this:

Code:
DoCmd.OpenForm strDocName, , , , A_READONLY
 

missinglinq

AWF VIP
Local time
Today, 05:05
Joined
Jun 20, 2003
Messages
6,423
I created a form so that my users can enter a password.

If this statement is true, why do you want to open the form in ReadOnly mode so that the users cannot enter anything?

Linq
 

qoot8

New member
Local time
Today, 02:05
Joined
Feb 20, 2018
Messages
1
I changed openform >datamode:add
i used the macro builder
access is easy yet hard to understand:confused:
 

Users who are viewing this thread

Top Bottom