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

Linking forms in access

3
Hello!

I have created one form "A" from Table A with buttons that lead to other forms ("B", "C", "D") - with respective Table B, C and D.

I'm trying to link the request ID of form A with the request ID of forms B, C and D. Request ID of Table A is linked to Request ID of Tables B, C and D.

What I want to happen is that when a user enters their request ID into form A, form B, C and D will also reflect the same request ID so that the user is putting all their information on the same Request ID.

Hope this makes sense.
Aug 18 '10 #1

✓ answered by munkee

Sure thing and no problem.

There is actually a simpler way to do this which I neglected to remember.

In your design view if you use the button wizard from the toolbox to add a button on to your form and select it to "open a form" along the way in the wizard there should be 2 options (provided you have a relationship defined between the two forms using a parent and child ID) which are:

Open the form and find specific data to display

or

Open the form and show all the records.

This basically uses a form filter to ensure the right data is displayed on the second form.

It might be worth taking a look at this before delving in to too much coding.

6 2885
munkee
374 256MB
I think you are basically asking how would I pass some form of linking ID value across forms to each other?

If so you can use the openargs statement in form open event.

You use this in the docmd.openform command to send the ID and then in your next form in the load event you pick up the openarg ID and use it.

Here is the ms example just to see if this is the kinda of thing you are after:

http://msdn.microsoft.com/en-us/libr...ice.11%29.aspx

It is also documented here in the final example:

http://www.datawright.com.au/access_..._arguments.htm
Aug 18 '10 #2
you can also (if using VBA to determine the form's recordset) use this style

forms!formA!RequestID (assumes there is a textbox or similar on FormA that is called RequestID)
Aug 18 '10 #3
twinks
3
Hi

Thanks for the quick response. Yes it sounds like what you're describing is exactly what I want.

Forgive my ignorance (I'm an Access noob here) and using any kind of coding is foreign to me - but how would I add this code into my forms?
Aug 19 '10 #4
munkee
374 256MB
Sure thing and no problem.

There is actually a simpler way to do this which I neglected to remember.

In your design view if you use the button wizard from the toolbox to add a button on to your form and select it to "open a form" along the way in the wizard there should be 2 options (provided you have a relationship defined between the two forms using a parent and child ID) which are:

Open the form and find specific data to display

or

Open the form and show all the records.

This basically uses a form filter to ensure the right data is displayed on the second form.

It might be worth taking a look at this before delving in to too much coding.
Aug 19 '10 #5
twinks
3
Hi munkee

That seems to have done the trick! Thank you very much!
Aug 19 '10 #6
munkee
374 256MB
No problem twinks. I can put the sledge hammer down now since the nut was cracked with a much simpler method.

Please select best answer on the post that provided the help the most so other users can easily find the information if they have a similar problem.

By the way welcome to Bytes =]
Aug 19 '10 #7

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

Similar topics

1
by: Philip | last post by:
Hey everyone, I've got a real newbie question and I'll try to make some sense as I explain it. I've got a three tables for simplification. SCREENS (screens names) CONTROLS (control names)...
1
by: santociabattari | last post by:
Hi Folks, I have 3 forms I want to link, so that when I advance 1 record in one form it will update the other two with the same record in the first form. I have tried using the form wizard (I...
3
by: JohnSouth | last post by:
Hi I'm developing a scheduling application (C#, Windows Forms, SQL Server) that matches up engineers and sites. I've got one form that shows an engineer and what sites he's visiting...
1
by: MJ | last post by:
I have a database where, when I put 3 forms on one form they link fine and auto fill in information as they should; however, when I try to use the Tab Control form I am having trouble having to...
2
by: danthrom | last post by:
Hi all, I am trying to hid a command button which links two forms. The forms are connected by a one-to-many relationship and the second form has details on the first. But if no details are...
1
by: GregZ | last post by:
I have an Access 97 database that I have uploaded to the internet. I have created a DSN for it with the hosting company and can now access it using .asp code. Everything here works fine. But, I...
4
by: noks | last post by:
Hi guys I'm tryin 2 access a form based on the results found but i keep gettin type mismatch (error) & it doesn't specify exaclty where's d error Pls c ma code: stLinkCriteria = "Customercode =...
5
by: oldroboman | last post by:
I have an access 2003 app, it has a main form, and a linked subform, the main and subforms are linked on one field, what I am trying to do is, when the user selects an item in the subform, and then...
1
by: egrill | last post by:
I am linking the tables in Access through my SQL server. It is accounting programming that uses status determine the type of document; 8 for sales order and 11 for credit orders. 11 are negative...
72
by: DavidPT | last post by:
Hi, I have setup 2 forms one is a logon page requesting username and password once these are filled in correctly there is a go button and when pressed it opens up a timesheet on another form. I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.