R
Ryan Tisserand
Private Sub CPUAccountNumber_BeforeUpdate(Cancel As Integer)
Dim stDocName As String
Dim stLinkCriteria As String
Dim stDocFilter As String
stDocName = ([CurrentDatabase] & "" & "TMHP")
stFilter = ([CurrentDatabase] & "" & "Filters")
If IsNull(DLookup("[TRFAM#]", "C54FILES_TRANS", "[TRFAM#]=" &
[Forms]![C54Filters]![CPUAccountNumber]))
Instead of
(DLookup("[TRFAM#]", "C54FILES_TRANS", "[TRFAM#]=" &
[Forms]![C54Filters]![CPUAccountNumber]))
I would like
(DLookup("[TRFAM#]", "C54FILES_TRANS", "[TRFAM#]=" &
[Forms]!stFilter![CPUAccountNumber]))
Is this possible?
Dim stDocName As String
Dim stLinkCriteria As String
Dim stDocFilter As String
stDocName = ([CurrentDatabase] & "" & "TMHP")
stFilter = ([CurrentDatabase] & "" & "Filters")
If IsNull(DLookup("[TRFAM#]", "C54FILES_TRANS", "[TRFAM#]=" &
[Forms]![C54Filters]![CPUAccountNumber]))
Instead of
(DLookup("[TRFAM#]", "C54FILES_TRANS", "[TRFAM#]=" &
[Forms]![C54Filters]![CPUAccountNumber]))
I would like
(DLookup("[TRFAM#]", "C54FILES_TRANS", "[TRFAM#]=" &
[Forms]!stFilter![CPUAccountNumber]))
Is this possible?