473,398 Members | 2,113 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,398 software developers and data experts.

How do u open a form automatically after the make-table query is done?

1
I am completely new to access. I have a make-table query that combines data from two/more tables, asks for a criteria, deletes the old table and produces a new table every time under the same name. The table is always linked up with a form to allows user to fill in certain rolls of the table.

A. How would you make the form pop out after the make-table query is done and the new table is made? Can I add a openform procedure in the sql code of the query? if so, how? If not, what should i do?

B. I am confused about how to restrict some of the properties of a table that is made new when a query is carried out.

Expand|Select|Wrap|Line Numbers
  1. ctMan.EquipID, ProjectMan.NumPart, Input.Date, Input.UserName, Input.UserWhoChanged, Input.DateOfChange, Input.[Memo/change reason] INTO DefaultQueryT
  2. FROM [Input] INNER JOIN ProjectMan ON (Input.EquipID=ProjectMan.EquipID) AND (Input.NumMainPart=ProjectMan.NumMainPart)
  3. WHERE (((Input.SerNumPart) Is Null) AND ((ProjectMan.NumMainPart)=[Main Part Serial Number?]));
  4.  
Jul 8 '10 #1
2 2371
jimatqsi
1,271 Expert 1GB
There are a number of ways the launching of the form could be combined with the make-table query. One can't really suggest a "best" without know the operating environment and pre-existing events.

The big question is "how is the make table query" being launched. If that process is in vba code, then the form could be opened with a line or two more of vba code. It it's in a macro, one more instruction in the macro would do it. Or create a new macro to run the query and launch the form.

Why not launch the form first, and include a button on the form to run the query?

About part B, I'm afraid I don't know how to answer without researching it.

Jim
Jul 9 '10 #2
NeoPa
32,556 Expert Mod 16PB
For B I would suggest a different approach. It is possible, though complicated, to set the various properties of a table and its fields, but I wouldn't go there unless I had to.

Instead, consider a defined table that you simply repopulate instead of recreate every time. Clearing the table and appending the new data is pretty straightforward in SQL. This way, your design is maintained through various usages.
Jul 11 '10 #3

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

Similar topics

7
by: TDIOwa | last post by:
I have a form that has a specific date on it. I want to open another form that has the Active Control Calendar on it. I want to open this form to the specific date on the first form. I have...
1
by: Daniel Diehl | last post by:
Hi there, just a short question. How can I get access to a open form (is also the MDI parent)? <FORMNAME>.<FUNCTION> does not work but I have to call a method in the mainForm of the Application to...
5
by: twick10 | last post by:
Hi, I am trying to execute a control method on an open form (not with focus) from a modal dialog box. I want to increment the node selected from the dialog when a certain key is pressed. Any...
2
by: allyn44 | last post by:
Hello, I have built a serch form for users to edit records. I only want them to pull up the record they need, and I want to check for nulls. There should not be dupes becasue the underlying...
3
by: kev | last post by:
Hi folks, I have a form for registration (frmRegistration) whereby i have two buttons. One is Save which saves record using the OnClick property. I used wizard to create the save button. The...
1
by: atlkhan | last post by:
Hi I am trying to submit the form automatically without button, but its not working. Following is the code <?php $name="Myname";
5
by: smartic | last post by:
i'm having form that have default values on it i need to post the form automatically how can i do that?
3
by: vidhyapriya | last post by:
Hi all I am developing windows application using vb.net.I want to pass values to open form.I am opening only one form when user click the buttons several times.Useing delegate i am passing...
10
by: Beatrice | last post by:
I need to open a form selecting all data from a previous form i.e: Form 1) combo box 1 named "cboYearSelect" displayed as "Year" based on qry QryYearList ( only one field "Year") ...
3
by: shripal | last post by:
hello,every one i have made the application to fill up the web form automatically in c#.net but i am not able to submit the form automatically that is submit button should be pressed automatically...
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.