Ok Here ya go:
'This will check to see if the job has been released by List Maint. to
production, if not then then job cannot be processed
strLMReleased = "SELECT [TrackNo VALIDATE tbl].TrackNoValid, [TrackNo
VALIDATE tbl].LSTReleaseDate " & _
"FROM [TrackNo VALIDATE tbl] " & _
"WHERE [TrackNo VALIDATE tbl].TrackNoValid = " &
[Forms]![frmListReleaseTrack]![ListRelease Track tbl
sbfrm].Form![TrackNoValid] & ";"
' [Forms]![frmListReleaseTrack]![ListRelease Track tbl
sbfrm]![TrackNoValid] & ";"
Set rstTables = dbsList.OpenRecordset(strLMReleased)
If Not rstTables.EOF Then
With rstTables
.MoveLast
.MoveFirst
If IsNull(rstTables!LSTReleaseDate) Then
MsgBox "This job has not been released by List Maintenance. Please
make sure the job is released before processing.", , "Cannot Process Job"
rstTables.Close
Exit Sub
End If
End With
End If
rstTables.Close
I hope this will help.
Klatuu said:
We need more information. Post the code that isn't working and a description
of what you are trying to do, please.
:
I'm not getting anything. Even w/the correct syntax.
:
What are you getting?
Just to make sure you are on the right track,
[ListRelease Track tbl sbfrm] should be the name of the subform control on
your main form, not the name of the form being used as a sub form. And, the
correct syntax should be:
[Forms]![frmListReleaseTrack]![ListRelease Track tbl
sbfrm].form![TrackNoValid]
:
Hi,
I have this code and for some reason I can't get the value of the field.
What am I doing wrong?
[Forms]![frmListReleaseTrack]![ListRelease Track tbl sbfrm]![TrackNoValid]
Thanks in advance!
Anna