473,396 Members | 1,774 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.

Calling Forms From a Object within a Form

Can someone help me please. I am trying to call another form from one of the attributes with in a form to create changes with in the database. what is the command for this procedure with in Access please???
Jan 28 '08 #1
4 2873
TerryDM
14
Please give more detail. An attribute is a setting than is either made or read - there is no action associated with it. To what action are you trying to invoke a form? What are the filter criteria that you want to be used when the form is opened?
Jan 28 '08 #2
Hey Terry,
Thank you for responding. Now what I have is a variable which is a list of values from a table. What I have to do is when the item changes and matches a certain criteria, the record has to be deleted from the 1st table and the same record is to be transferred to the second table. Now I want to do this either by invoking another Form and do all the changes there or just inserting the record to the 2nd table and then delete the record from the 1st one. The Trigger I will be using is on the EVENT Tab and is called AFTER UPDATE, which I feel is the most appropriate trigger. Now if I am going to call a new FORM, I will be using the ON CLICK Trigger and if I am using the INSERT and DELETE mode then the AFTER UPDATE Trigger. Now I want to know, is the command to invoke a new FORM from this ITEM, if possible please???
Jan 28 '08 #3
TerryDM
14
Hey Terry,
Thank you for responding. Now what I have is a variable which is a list of values from a table. What I have to do is when the item changes and matches a certain criteria, the record has to be deleted from the 1st table and the same record is to be transferred to the second table. Now I want to do this either by invoking another Form and do all the changes there or just inserting the record to the 2nd table and then delete the record from the 1st one. The Trigger I will be using is on the EVENT Tab and is called AFTER UPDATE, which I feel is the most appropriate trigger. Now if I am going to call a new FORM, I will be using the ON CLICK Trigger and if I am using the INSERT and DELETE mode then the AFTER UPDATE Trigger. Now I want to know, is the command to invoke a new FORM from this ITEM, if possible please???
In the AfterUpdate event use the following code snippet:

DoCmd.OpenForm "frmXXXX"
DoCmd.OpenQuery 'insert'
Docmd.OpenQuery 'delete'

This can be done with a macro also which can run the queries, but it doesn't seem like you need the form.
Jan 28 '08 #4
In the AfterUpdate event use the following code snippet:

DoCmd.OpenForm "frmXXXX"
DoCmd.OpenQuery 'insert'
Docmd.OpenQuery 'delete'

This can be done with a macro also which can run the queries, but it doesn't seem like you need the form.


THANK YOU TERRY AND GOOD NIGHT
Jan 28 '08 #5

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

Similar topics

6
by: Jon Hyland | last post by:
Ok, I'm a little rusty on this, it should be a simple problem but I can't figure it out. How can I handle form events in my main code page?? I'm creating a Windows App in C#. Rather than make...
6
by: Amjad | last post by:
Hi, I want to make a project that calls and executes a function (VB code) made in a seperate file in the Application Folder. I know I can create the function in my project and call it internally,...
8
by: Stephen Rice | last post by:
Hi, I have a periodic problem which I am having a real time trying to sort. Background: An MDI VB app with a DB on SQL 2000. I have wrapped all the DB access into an object which spawns a...
4
by: LCAdeveloper | last post by:
Help! Another newbie question I'm afraid. I have a toolbar on an MDI form, which I can control OK to produce a child form. When the child form is active, the appropriate MDI parent form toolbar...
3
by: DotNetNewbie | last post by:
I am reading the book Teach Yourself Microsoft Visual Basic .Net 2003 in 21 Days. I am having trouble getting one of the exercises to work at the end of day 4. Exercises: 1. Create a new...
5
by: Stephen Plotnick | last post by:
I'm very new to VB.NET, or any VB. I need to have form1 call form2 which calls form3, etc. I am able to use oledb in form1 to get the data. I build all the data for form2 and form3 from...
6
by: ahmad.humyn | last post by:
I want to call a hidden form. My code goes something like in which the main calls form1. form1 has a button which creates & calls form2 and hides itself. Now I have a button in form2 which if...
1
by: bytebugs | last post by:
Hi, As a matter of principle I have refranied from creating an instance of Form or UserControl from within a class that does not inherit from System.Windows.Form. I am looking for comments on...
12
by: raylopez99 | last post by:
Keywords: scope resolution, passing classes between parent and child forms, parameter constructor method, normal constructor, default constructor, forward reference, sharing classes between forms....
21
by: Dan Tallent | last post by:
In my application I have a form (Customer) that I want to be able to open multiple copies at once. Within this form I have other forms that can be opened. Example: ZipCode. When the user enters...
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: 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: 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
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
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.