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

how to give a textbox value taken from calling form

I have a form containing a command button which calls another form and I want to put in the last opened form a value taken from the calling form
Sep 8 '11 #1
2 1564
patjones
931 Expert 512MB
You're not giving us very many details to go on. I can only give you a couple of general concepts to consider.

First is the OpenArgs argument of DoCmd.OpenForm. This allows you to pass a value into the form that you are opening. It is well documented in the Access help pages and elsewhere.

Second is the possibility of setting up a global variable that you can assign your value to, and which any form in your project will be able to see.

Good luck.

Pat
Sep 8 '11 #2
NeoPa
32,556 Expert Mod 16PB
There are two basic methods, each of which will work :
  1. Pass the value required in the OpenArgs parameter and handle this in your opened form's Form_Open() procedure.
  2. Open the second form then, in the code after the call to open, set the value of the control in the opened form.
Sep 8 '11 #3

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

Similar topics

1
by: TheVisionThing | last post by:
I want to retrieve the value of the textbox 'TablePageSize' when I press the 'Go' button, like so: Page Size <input name="TablePageSize" type="text" size="4" maxlength="4" /> &nbsp;<input...
1
by: Don | last post by:
Is there a way to query the value of an open form's textbox? I am trying to append the values from a form to a table.
5
by: Claudia Fong | last post by:
Hi, I have 2 forms. Form1 has a button which calls form2, but I need to know the value of the form1.textBox1.text. When I show form2, I try to use the code bellow: textBox1.Text =...
3
by: RevUK | last post by:
Hi, I am trying to link a textbox value from an Access 97 form to a specific cell in Excel 97. I have tried many different avenues with this but as of yet I am still stuck on how to achieve...
0
by: puneet28in | last post by:
Hello, I want to retrieve bounded textbox value of a form whenever user click on next record. I have used the textbox.value property but it always gives the old or the initial value. Help me...
5
by: ataurrehman | last post by:
Dear All I have a Master-detail form which depends upon master-detail tables. Master form have the following fields: MstID, MstTotalPrice and the detail form contains the following fielsds:...
1
by: =?Utf-8?B?U2FpbXZw?= | last post by:
Hello Marc Gravell and Machin. Good Day. Why your not using an Instance in the form and yet your using a New Form? Im using it because I want to open a single form only. If Im using a New...
5
by: Bugran | last post by:
I am trying to copy a textbox field on a form (which basically contains the body of a letter) into a memo field in a table (Access 2003) for later printing later. Of course Access queries/SQL will...
1
by: sprad | last post by:
I try to copy value of textbox from one form to another textbox of another form when checkbox is checked. So did anybody have idea how to do it.Please reply me as soon as possible. Thanks..
0
by: mcaneaney | last post by:
I have created an array ‘GiftOnDeath(n)’, where n = the number of gifts… Dim GiftOnDeath() ‘do some code and collect the number of gifts ‘NumGiftsOnDeath' Redim GiftOnDeath(NumGiftsOnDeath) ...
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:
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:
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
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,...
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.