Not clearing out a text box.

  • Thread starter Thread starter Marat Mamedov
  • Start date Start date
M

Marat Mamedov

Hello, I have a simple question.

I have a form in which I have a name that is imported from
a previous form. I want that name to stay in that text box
unchanged. However, when I click on a Create New Record
button, that text field is cleared out.

What do I need to do to keep that name in the text box
when the Create New Record button is clicked.

Thank you,

Marat Mamedov
 
The code behind your Create New Record button could look
something like this:
Dim strString As String
strString = Me.Last
DoCmd.GoToRecord , , acNewRec
Me.Last = strString

Roxie Aho
 

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

Back
Top