• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 164
  • Last Modified:

Disabling ms access form

Hi,

I have two forms. The second one is called by the button that is on the first one. I wanna disable first form when second one is open. Me.Enabled = False isn't working :(
0
Yury Merezhkov
Asked:
Yury Merezhkov
  • 2
1 Solution
 
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
Why not just close it?  In Access VBA...

DoCmd.OpenForm "Your Second Form Name"
DoCmd.Close acForm, Me.Name
0
 
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
Another option would be to open the second form with Modal=True, which would mean the user couldn't set the focus off of that second form until they close it.

docmd.OpenForm "Your Second Form Name",acNormal,,,,acDialog
0
 
Yury MerezhkovDevelopment Team LeadAuthor Commented:
Exactly what I need :) Thank you.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now