user578332
user578332

Reputation: 345

How call form from another form?

I have "login" form. My submit button checks username and password. I want this button also close "login" form and open another form where form name comes from label caption. For example:

DoCmd.OpenForm "label11.caption"

But I get error. and cannot solve this. Please help Thanks in advance

Upvotes: 1

Views: 59

Answers (1)

Gustav
Gustav

Reputation: 56026

It should read:

DoCmd.OpenForm Me!label11.Caption

Upvotes: 2

Related Questions