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

Getting data from other forms/subforms

Hey guys,

I'm fairly new to Access so please be patient.
Im currently using 2003 and my problem is...currently I have 2 Forms and each with a subform. FormB has a textboxB that gets a sum of values from the subform-B(datasheet view).
Now, I am trying to call that value from textboxB to the subformA(datasheet view) of FormA.

I use this to call from subformA and it only works when FormB is open.

=[Forms]![FormB]![textboxB]

I want to have it so i dont' need both Forms to be open to see it.

Thanks
Mar 3 '08 #1
4 2204
MindBender77
234 100+
Hey guys,

I'm fairly new to Access so please be patient.
Im currently using 2003 and my problem is...currently I have 2 Forms and each with a subform. FormB has a textboxB that gets a sum of values from the subform-B(datasheet view).
Now, I am trying to call that value from textboxB to the subformA(datasheet view) of FormA.

I use this to call from subformA and it only works when FormB is open.

=[Forms]![FormB]![textboxB]

I want to have it so i dont' need both Forms to be open to see it.

Thanks
You could try appending the value of textboxB to a temp table then use "DLookup" in subformA to display the value. This way only one form needs to be open.

Bender
Mar 3 '08 #2
You could try appending the value of textboxB to a temp table then use "DLookup" in subformA to display the value. This way only one form needs to be open.

Bender

How would I go about appending values to a temp table?
Mar 3 '08 #3
MindBender77
234 100+
How would I go about appending values to a temp table?
First create a table with only one column. Name the table something like data_temp. This is make it easier to identify the temp table. Next and assuming your subform is linked to a table, design an append query using the value of your textbox as criteria.

On the form that has the textbox, use the OnChange event or AfterUpdate event of the textbox to run the append query. This will populate the temp table.

Now you can use DLookup on formB instead of having both forms open at the same time. There are several different ways of doing what you asked.

Bender
Mar 3 '08 #4
First create a table with only one column. Name the table something like data_temp. This is make it easier to identify the temp table. Next and assuming your subform is linked to a table, design an append query using the value of your textbox as criteria.

On the form that has the textbox, use the OnChange event or AfterUpdate event of the textbox to run the append query. This will populate the temp table.

Now you can use DLookup on formB instead of having both forms open at the same time. There are several different ways of doing what you asked.

Bender
THANKS!! I'll give it a try and let you know how it goes.
Mar 3 '08 #5

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

Similar topics

32
by: Neil Ginsberg | last post by:
We're using SQL Server 7 with an Access 2000 MDB as a front end with ODBC linked tables. I recently created a new set of tables for the app, and users are complaining that unsaved data is being...
4
by: Bill Stock | last post by:
The few times in the past that I've loaded unbound data, I've tended to cheat and use temp tables (not really unbound) or use code for small datasets. I'm currently involved in a project that...
6
by: erick-flores | last post by:
Hello all, Form A & Form B Form B opens when I click on a button from Form A. How do I setup Form B so it will always let me insert new records. Because right know, when I click on the button...
18
by: marylipscomb | last post by:
I am new at the whole Access thing, and recently got a new job. I am creating my first database. I did so in Access 2003. My problem is, I have 10 tables, and I created a tab form with 6 tabs on it....
1
MGrowneyARSI
by: MGrowneyARSI | last post by:
I have a form with 4 tabs/pages and 5 sub forms two of the sub forms are linked to each other useing the querys but they are not linked to any other form, however both of the subforms have lookups on...
11
by: BASSPU03 | last post by:
Tomorrow's my final presentation of my DB and I ran into an unexpected problem: I access a main form called frmViewAllResources with several tabbed subforms through my switchboard. There's a preview...
3
by: OzNet | last post by:
Hi I have a main form and want to put two subforms on a tabbed control (on the same tab) Subform 1 will display data if it corresponds with the data on the main form. When this is true, subform...
5
sickenhoofer
by: sickenhoofer | last post by:
I have a form w several subforms. The ultimate goal would be to click on a location, and have the data in the other subforms change to the data specific to that location. For this form, there are...
7
reginaldmerritt
by: reginaldmerritt | last post by:
I have a few forms which i have designed to be subforms to a mainform that has no fields or record source. The forms have an unbound textbox and combo box, which i use to seach the data on these...
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: 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
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
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
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...

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.