473,386 Members | 2,042 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Popup form from onclick event on command button

LeighW
73 64KB
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

3 6035
NeoPa
32,556 Expert Mod 16PB
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
73 64KB
Perfect, thanks again NeoPa! I thought it may have been something to do with acDialog.
Jun 20 '12 #3
NeoPa
32,556 Expert Mod 16PB
No worries. Pleased to be able to help :-)
Jun 20 '12 #4

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

Similar topics

6
by: MLH | last post by:
How can I hit www.someplace.com from an Access form? I'd like to... 1) open user's default browser (if not already open) 2) type in a URL 3) press enter (or click Go - or - whatever it takes) ...
9
by: Melissa | last post by:
What is the code to delete a command button from a form? Can the code be run from the click event of the button to be deleted? Thanks! Melissa
2
by: Colin | last post by:
I have a main form with a command button on it that when clicked, opens a subform displaying records that relate to the main form. I would like to disable the command button if the corresponding...
2
by: Sandeep | last post by:
Hi I want to write onclick event on a button(a web control) ,also i want to call a client side function on the click event how to write that how to differentiate between these two events ...
2
by: Caspy | last post by:
When add a button to a web form, if the button can CauseValidation, the server emits client side javascript as: <input type="submit" name="Button1" value="Button" onclick="if...
18
by: Colin McGuire | last post by:
Hi - this was posted last weekend and unfortunately not resolved. The solutions that were posted almost worked but after another 5 days of working on the code everynight, I am not further ahead....
2
by: George Medlock | last post by:
What is the code to open a form at the click of a command button?
1
by: Bisweswar | last post by:
I have gone through the "Add Row (DOM) with onClick Function " where u are adding textfields/checkboxs in cells. I need to add dropdown menu with some values.
9
by: eberry707 | last post by:
I have created a form and want to open the sub form with an on click command button. Is this possible? The only way I can view the subform is to have it embedded into the form. I want to have it...
3
by: chirag1989 | last post by:
hi i have some textboxes in my form wat i want to do is wheever the user clicks the button the data in text boxes must be stored in database i have written my insert query like this ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.