Auto Fill Text Box After Transferring Forms

D

DaveAP

First time asking a question...

I'm having difficulty having a date auto-populate when specifically
transferring from one form to the another.

I do not want the date to auto-populate every time this form is opened, only
when transferred from this particular form. Is this possible? Currently
this is what my code looks like:

Private Sub Correct_AP20_Click()
On Error GoTo Err_Correct_AP20_Click

Me!Corrected_Process = "AP20.3"
Me!Resolved = True
Me!Audited = True
Me!Resolved_Date = FormatDateTime(Now(), 2)

DoCmd.GoToRecord , , acNewRec, DataEntry
DoCmd.Close

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "frmAP20point3"
DoCmd.OpenForm stDocName, , , stLinkCriteria


Exit_Correct_AP20_Click:
Exit Sub

Err_Correct_AP20_Click:
MsgBox Err.Description
Resume Exit_Correct_AP20_Click

When the AP20.3 screen opens I would like it to add today's date to a field
called: Corrected_Date

Is this possible?
 

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