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
 
Back
Top