Link to home
Start Free TrialLog in
Avatar of SteveL13
SteveL13Flag for United States of America

asked on

Trying to populate field on a form based on selection from another combobox

I am trying to make a field on a form named txtWORKING_INTEREST fill with a DMax from a table.  The code I'm trying is:

Me.txtWORKING_INTEREST = DMax("[WORKING_INTEREST]", "tblPropertyInterests", "[PROPNUM] = '" & Forms!frmRecordsHeader!txtPROPNUM & "'")

And the table, tblPropertyInterests" looks like this for txtPROPNUM:

User generated image
But the after update event keeps filling the field txtWORKING_INTEREST  with 9.350474  (which is a text field as is txtPROPNUM on the form).

What have I missed?
Avatar of SteveL13
SteveL13
Flag of United States of America image

ASKER

And I want it to fil with 35.6789
SOLUTION
Avatar of PatHartman
PatHartman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial