Dlook up Problems (1 Viewer)

odrozd

New member
Local time
Today, 03:57
Joined
Mar 24, 2012
Messages
9
I am trying to populate a txtBox on the SubForm of a Form, Using a Set Value Function = DlookUp function. The DlookUp Function searches for a value in the table and compares it to a value of another txtBox of the subform .
The problem is:
Using the Left Switch on Mouse works fine, txtBox is populated correctly
Using the Enter Key does not work; it clears the box used for the seaech data and does not populate the txtBox.

I tried placing the procedure in the After Update event and also placing it in the on Enter event to no avail.

Suggestion are very welcome
thanks a bunch

Otto
 

JHB

Have been here a while
Local time
Today, 12:57
Joined
Jun 17, 2012
Messages
7,732
..

Using the Left Switch on Mouse works fine, txtBox is populated correctly
Do you mean, setting focus to another control or???
Using the Enter Key does not work; it clears the box used for the seaech data and does not populate the txtBox.
Is the textbox unbound, normally an Enter shouldn't clear anything, (only set focus to an other control if there are any)?
Show all your code for that textbox!
 

Users who are viewing this thread

Top Bottom