Avatar of SteveL13
SteveL13
Flag 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:

Table Example
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?
Microsoft Access

Avatar of undefined
Last Comment
Gustav Brock

8/22/2022 - Mon
SteveL13

ASKER
And I want it to fil with 35.6789
SOLUTION
PatHartman

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
Gustav Brock

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck