I am trying to open the form "frmCLECS2wSystem" and make it go to the same
record as the record on the form I just came from Clec Systems Inventory.
The subform called "LENSTasks" is where I want to place the new record
after
I click a check box called [completed] but need the main form to open to
the
correct record. Now it opens the form but just goes to the first record.
Hope that makes sense. Thank you again.
Here is the if statement to open the form.
Private Sub Completed_AfterUpdate()
On Error GoTo Err_Command0_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmCLECS2wSystem"
If Me.Completed = "-1" Then
DoCmd.OpenForm stDocName, , , stLinkCriteria
MsgBox "Add LEX to System List if not already added"
End If
Steve Schapel said:
Confused,
It is not clear what you are trying to achieve.
Your code manages the DefaultValue of the CLEC ID field on the form you
are
opening. This property only has any effect at the point when a new
record
will be created on the form. What is your intention?
--
Steve Schapel, Microsoft Access MVP
That stopped the error, and now it opens the form, but I can't get it
to
go
to the record = [CLEC ID]. Both fields are viewable on the form.
Any
idea? Thanks!