473,396 Members | 1,738 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,396 software developers and data experts.

What is vbModal

syedshaffee
Hey People,

I noticed that my previous Developer has used
Expand|Select|Wrap|Line Numbers
  1.  DoCmd.OpenForm "frmPurchaseOrderAssignPO", , , , , acDialog, vbModal
  2.  
This for opening a from but the last parameter has vbModal as a parameter as openargs

can someone please explain
Sep 20 '12 #1
1 2441
TheSmileyCoder
2,322 Expert Mod 2GB
The parameter passed there is part of the Open args, which is a string variable that can be passed TO the form as it opens.

For instance, I might have a form Projects, in which I have a button to Create New Task, which opens up a seperate form (Instead of using a subform) and I want to let that form know that the new task's master object is the project, so I pass the project ID in the openArgs.

Then in my form's Load event I do:
Expand|Select|Wrap|Line Numbers
  1. Me.tb_ProjectID.DefaultValue=Me.OpenArgs

Now as for vbModal, it really by itself means nothing when passed as part of the openargs, unless you specifically add code in the form using the OpenArgs (As example above)

When something is MODAL it means that it is a popup that catches the focus, I.e. you cannot click on any other access forms, until you have closed the form. Usefull for instance if you don't want your code to proceed until "something" has happened in the popup and user has closed the form. A standard msgbox for instance is modal.


Edit:
So try checking the form being opened, and do a search in its code for OpenArgs.
Sep 20 '12 #2

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

Similar topics

5
by: Al Davis | last post by:
Note: I tried cross-posting this message to several newsgoups, including comp.lang.perl.misc, c.l.p.moderated, comp.infosystems.www.authoring.cgi, comp.lang.javascript and comp.lang.php. Nothing...
15
by: lkrubner | last post by:
I want to give users the power to edit files from an easy interface, so I create a form and a PHP script called "fileUpdate". It does a reasonable about of error checking and prints out some...
2
by: thecrow | last post by:
Alright, what the hell is going on here? In the following code, I expect the printed result to be: DEBUG: frank's last name is burns. Instead, what I get is: DEBUG: frank's last name is...
220
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have...
54
by: Brandon J. Van Every | last post by:
I'm realizing I didn't frame my question well. What's ***TOTALLY COMPELLING*** about Ruby over Python? What makes you jump up in your chair and scream "Wow! Ruby has *that*? That is SO...
699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
3
by: Chris Cioffi | last post by:
I started writing this list because I wanted to have definite points to base a comparison on and as the starting point of writing something myself. After looking around, I think it would be a...
125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
0
by: Jim88 | last post by:
Hi, I'm having a problem to show a screen as vbmodal in the environment below. Platform: windows vista Language: VB 6 Currently, I have a executable file called StartShell.exe, that will...
1
by: sumuka | last post by:
Hello everyone, In my VB 6 project I have an MDI form. When I click on one of the options it opens one form. Till here it's fine, but I need to put a condition so that only after closing the child...
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:
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.