repeat previously entered information?

N

Nadine

I would like to know if there is a way that when after
having finished entering the data on your form and that
when you create a new record that the data previously
entered is shown again on the form.

Actually only 3 field named fldHotel, fldMainContact and
fldPhone should be repeated each time when entering a new
record. TIA.
 
S

StCyrM

Hi Nadine

You can use the following to carry the values to the new record ...simply
substitute your field values


Const cQuote = """"

'Carry values forward
Me!txtField1.DefaultValue = cQuote & Me!txtField1.Value & cQuote
Me![txtField2].DefaultValue = cQuote & Me![txtField2].Value & cQuote

DoCmd.RunCommand acCmdRecordsGoToNew

Best regards

Maurice
 
L

Linda

I have tried that but that does not seem to work.
-----Original Message-----
Hi Nadine

You can use the following to carry the values to the new record ...simply
substitute your field values


Const cQuote = """"

'Carry values forward
Me!txtField1.DefaultValue = cQuote & Me! txtField1.Value & cQuote
Me![txtField2].DefaultValue = cQuote & Me! [txtField2].Value & cQuote

DoCmd.RunCommand acCmdRecordsGoToNew

Best regards

Maurice


I would like to know if there is a way that when after
having finished entering the data on your form and that
when you create a new record that the data previously
entered is shown again on the form.

Actually only 3 field named fldHotel, fldMainContact and
fldPhone should be repeated each time when entering a new
record. TIA.


.
 
C

Craig

Nadine,
This is the easiest way. Press CTRL+APOSTROPHE (').
No code is needed.
--Craig
 

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