Open data

  • Thread starter Thread starter Robert Couchman
  • Start date Start date
R

Robert Couchman

Hello, i am trying to use data from one form to input into
the next open form, what code would i need to use so that
when i click the button to open the new form, the customer
id and name will automaticlly be inserted.
**please note that the existing window cannot be closed**

Thank you,

Robert Couchman
 
Robert,

Here is one technique.

First load the form, without showing it, transfer the data, and then show
the form. Here is an example that transfers the contents of Textbox1 in
form1 to Textbox1 in form2

Load UserForm2
With UserForm2
.TextBox1.Text = TextBox1.Text
.Show
End With

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

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

Similar Threads

First Question 1
Problem with list 2
Using a listbox effectivly 2
Open Specific Worksheet Using Button Form Control in Excel 0
Userform idea 4
Help with location? 2
Starting Easy 1
Using listbox 1

Back
Top