By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,139 Members | 1,247 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,139 IT Pros & Developers. It's quick & easy.

Popup form from onclick event on command button

LeighW
P: 73
Hi,

Hopefully a simple one this.

On the data entry form (frm_DataEntryArgument) I want the user to click a command button which brings up the full (non-filtered) list of records on a pop-up style form (frm_Evidence) to help with data entry.

At the moment I have it simply opening frm_Evidence via the wizard. I'd prefer it to be in pop-up style so it pops up in front of the data entry form and is obvious that you have to close it to go back to the dataentry form.

I don't want frm_Evidence to always be in pop-up style as it has other uses, only when you click the command button on the data entry form do I want it to pop-up.

Any suggestions would be great!

Leigh
Jun 20 '12 #1

✓ answered by NeoPa

Use WindowMode:=acDialog in the DoCmd.OpenForm() call. This sets both the Modal and PopUp properties to True for the invocation.

WindowMode is the sixth parameter for any of you heathens who still use positional parameters for complicated calls :-D

Share this Question
Share on Google+
3 Replies


NeoPa
Expert Mod 15k+
P: 31,419
Use WindowMode:=acDialog in the DoCmd.OpenForm() call. This sets both the Modal and PopUp properties to True for the invocation.

WindowMode is the sixth parameter for any of you heathens who still use positional parameters for complicated calls :-D
Jun 20 '12 #2

LeighW
P: 73
Perfect, thanks again NeoPa! I thought it may have been something to do with acDialog.
Jun 20 '12 #3

NeoPa
Expert Mod 15k+
P: 31,419
No worries. Pleased to be able to help :-)
Jun 20 '12 #4

Post your reply

Sign in to post your reply or Sign up for a free account.