J
John Pritchard
Hi,
I have a continuous sub form and (following help from
GreySky - thanks mate) can now populate a description
field successfully by having the following in the
controlsource of the description field:-
=DLookUp("TitleName","TitleCodes","AcctUnit=Forms!AddPDS!
PDSLinSub!AcctUnit")
and this in the exit event of the AcctUnit field (i.e. the
field the above is a descrition of) :-
Private Sub AcctUnit_Exit(Cancel As Integer)
Me.TitleName.ControlSource =
Me.TitleName.ControlSource
End Sub
This works but is a bit clunky. Without the above line
(which seems pointless on the face of it) the descriptions
soon get in a mess.
So - Can I change the above to make it more efficient -
like hardcoding the Dlookup into the AcctUnit_exit routine?
If so please say how as I'm quite new to this stuff
Kind Regards
John P.
I have a continuous sub form and (following help from
GreySky - thanks mate) can now populate a description
field successfully by having the following in the
controlsource of the description field:-
=DLookUp("TitleName","TitleCodes","AcctUnit=Forms!AddPDS!
PDSLinSub!AcctUnit")
and this in the exit event of the AcctUnit field (i.e. the
field the above is a descrition of) :-
Private Sub AcctUnit_Exit(Cancel As Integer)
Me.TitleName.ControlSource =
Me.TitleName.ControlSource
End Sub
This works but is a bit clunky. Without the above line
(which seems pointless on the face of it) the descriptions
soon get in a mess.
So - Can I change the above to make it more efficient -
like hardcoding the Dlookup into the AcctUnit_exit routine?
If so please say how as I'm quite new to this stuff
Kind Regards
John P.