473,487 Members | 2,671 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Pulling data across multiple forms in Access 2003

21 New Member
Hello,

I have a database form that has a tabs control, and on each tab is another form. Each form pulls data from a different query.

For example, tab 1 may list personal information (form1), tab 2 shows billing information (form2).

I have a rather simple problem, but I can't seem to figure out how to pull data from the form on tab 2 and display it on tab 1. So if the form2 on tab 2 has a field called "balanceDue", I'd like to assign a field on form1 to show that information.

To check that I am able to get the data from form2 on form1, I've tried making a very simple button that does "msgbox(form2!balanceDue.value)" but that clearly does not work.

I feel like a noob. Could someone help me? :-)
Apr 26 '07 #1
10 2708
MMcCarthy
14,534 Recognized Expert Moderator MVP
form1 and form2 are considered subforms of the main form.
Create a textbox on subform1 and set the value to
Expand|Select|Wrap|Line Numbers
  1. =Forms![MainFormName]![subform2name].Form![balanceDue]
Mary
Apr 26 '07 #2
Himmel
21 New Member
form1 and form2 are considered subforms of the main form.
Create a textbox on subform1 and set the value to
Expand|Select|Wrap|Line Numbers
  1. =Forms![MainFormName]![subform2name].Form![balanceDue]
Mary

Thanks Mary,

Yup just figured this out myself, about 10 seconds ago. lol.

I was trying to derive the proper object properties. My ! and . and syntax were tripping over each other. haha.

"msgbox(Forms!mainform.form2!balanceDue.Value) " did the trick. I can stop bashing my head into the table now. haha
Apr 26 '07 #3
MMcCarthy
14,534 Recognized Expert Moderator MVP
Thanks Mary,

Yup just figured this out myself, about 10 seconds ago. lol.

I was trying to derive the proper object properties. My ! and . and syntax were tripping over each other. haha.

"msgbox(Forms!mainform.form2!balanceDue.Value) " did the trick. I can stop bashing my head into the table now. haha
Glad you got it sorted. It's always nice when you can figure these things out for yourself.
Apr 26 '07 #4
Himmel
21 New Member
Thanks Mary,

Yup just figured this out myself, about 10 seconds ago. lol.

I was trying to derive the proper object properties. My ! and . and syntax were tripping over each other. haha.

"msgbox(Forms!mainform.form2!balanceDue.Value) " did the trick. I can stop bashing my head into the table now. haha
Actually, I tried this in a test form (parent form with two child forms on it) and it worked fine. However, on the live form (using tabs control) it does not work.

I get "Application-defined or Object-defined error"
Apr 26 '07 #5
Himmel
21 New Member
Yeah, appears to be a problem with having a tabs control. Do I need to refer to the tabs control and/or tab the second form is on?

I'm confusing even myself, so hopefully a screenshot will help illustrate this. :)


Apr 26 '07 #6
MMcCarthy
14,534 Recognized Expert Moderator MVP
Go back to the syntax I gave you originally, look at the .Form bit. Also check the name of the subform object as opposed to the subform. If you click on the frame around the subform in design view and open the properties window. Under the Other tab check the value in the Name property.
Apr 26 '07 #7
Himmel
21 New Member
How did you know? :-)


A million thanks. Good god I've been staring at this thing waaaay too long.
Apr 26 '07 #8
MMcCarthy
14,534 Recognized Expert Moderator MVP
How did you know? :-)


A million thanks. Good god I've been staring at this thing waaaay too long.
Been caught out on that one a few times myself :)

Glad to help.
Apr 26 '07 #9
kartikss
25 New Member
Hi!!!!

There are 2 options to work on it.

Option 1

1. Create a query by selecting 2 or more table in 1 query.
2. Select the fields in query as per your requirement.
3. After saving the query , then create a form
4. Select the tab option in form
5
Apr 26 '07 #10
kartikss
25 New Member
kindly inform previous message send by me

Hi!!!!

There are 2 options to work on it.

Option 1

1. Create a query by selecting 2 or more table in 1 query.
2. Select the fields in query as per your requirement.
3. After saving the query , then create a form
4. Select the tab option in form
5. Select the fields (created in query) in tab 1 and go to tab 2 select the fields from same query (having 2nd table). and disable those fields

Option 2

1. Select the fields from table 1 in tab 1
2. Go to tab 2 and unbound text field option and type the field name and disable that option.

try this options , still if you feel confusing do let me know.


Thanks & Bye

Kartik
Apr 26 '07 #11

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

Similar topics

3
1870
by: Ron Nolan | last post by:
I have a large application that contains lots and lots of financial history data. The history data is currently set up in a table called 'TblHist' that exists inside each of these three .mdb...
5
1945
by: jqpdev | last post by:
Hello all... I'm coming from a Borland Delphi background. Delphi has a specific component called a Data Module. In the designer the Data Module behaves like a windows form. A developer can...
2
301
by: Mervin Williams | last post by:
I am using Infragistics UltraWebTab (a tab folder control for ASP.NET). My tab folder control will include five tab pages with a separate web form on each, and these web forms will share data. ...
0
991
by: Paul Craig | last post by:
Hi everyone, I have recently upgraded several of my projects from Visual Studio 2003 to 2005 and everything went across quite smoothly. The main problem that I am having is I have used SQL Data...
5
6428
by: Stewart | last post by:
Hi there, I have an Access database, which contains the details of company staff and services. The plan is to extract data from this database onto our forthcoming Intranet (no inserting,...
9
1602
by: wanyok | last post by:
I thought I had it figured out but I'm still getting errors :( I would appreciate any help I could get. I have two forms: Form1 and frmVerify. Once the info gets submitted on Form1 its text...
1
1693
by: Himmel | last post by:
I may be brain-fried, but I could use some help again. One of my glorious forms in my multi-form report thingiemajigger is a tabular form. For example, it shows customer items purchased and the...
4
4500
by: Dave | last post by:
I have a global.asax file with Application_Start defined and create some static data there and in another module used in the asp.net application and I realize that static data is shared amongst...
9
2168
by: karenjfrancis | last post by:
I have 4 Access databases, all with the same data model but different data. I want to build a front end that brings all of the data in the 4 databases together into one. Assuming my table of...
0
7137
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,...
1
6846
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
5442
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,...
1
4874
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4565
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3076
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1381
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
600
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.