Solved

How do I access data in a field in a form and place it in the current form?

Posted on 2003-12-01
2
350 Views
Last Modified: 2012-05-04
Hi,
Cannot remember how to open a form from the current form, obtain data from a field in that form, and place it in a field in the current form.  A basic question but I really need an answer.

Thanks,
bobcrewsdson
0
Comment
Question by:bobcrewdson
2 Comments
 
LVL 22

Expert Comment

by:cookre
ID: 9850845
Do you mean:

NewForm.FieldX.Text=OtherForm.FieldY.Text
NewForm.Refresh

?
0
 
LVL 8

Accepted Solution

by:
SNilsson earned 250 total points
ID: 9851863
( where frmOther is the form to open)

From Current form:
_________________________
Dim x as form

Set x = new frmOther

x.show

me.txtField.text = x.txtField.text

_________________________

txtField is supposed to be a textbox in each form.

Hope that helps your memory :)
 


0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question