Not clearing out a text box.

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
 
R

Roxie Aho

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
 
Top