Enter data in a textbox from another form

G

Guest

Office 2003 on Windows XP

User opens Form1, clicks a button, Form2 opens. User double-clicks Form2 to
make a choice. Event copies user choice into a date variable; and closes
Form2.

Before the close command, I need the date to be written into a Text box on
Form1. This box must be locked to control input.

Assuming my text box name is "RunDateBox", how do I populate the text box
using VBA?

I have tried something along the lines of:

Forms("Checks1").Field("RunDateBox").Text = gdRunDate

Also, can this be done using a label rather than a text box? If so, how?
But no go. Thanks much in advance for your assistance.
 
G

Guest

I cracked what I was doing wrong. Please ignore and excuse this post.

Thanks for reading.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top