D
Don V
What the hell am I doing wrong in this Dlookup.
I have a very basic understanding of this stuff and I'm stumped on this.
I'm guessing I have some stupid syntax error.
Would greatly appeciate any help. I'm dizzy after a week of puzzling at
this.
Me![txtUnitPrice1].Value = DLookup("[Price]",
"Application.CurrentData.Alltables[tblWork]", "[Type]= Me![cboWork1].Text")
I'm getting an error saying the that Jet Data Engine can not find the
table.
I'll try to explain what I'm attempting and case anyone can give me a more
efficient way.
I'm trying to access a table(Work) with 2 fields Type and Price.
I'm trying to reach it from within a form that is not linked to the the
Work table(Could be the problem)
When I select a value from a Combo box(cboWork1)which is populated with a
value list pulled from the Type field in the Work table.
I want the Price field value looked up for the record that matches the Type
field selected from cboWork1 and entered into a text box(txtUnitPrice1).
Don
I have a very basic understanding of this stuff and I'm stumped on this.
I'm guessing I have some stupid syntax error.
Would greatly appeciate any help. I'm dizzy after a week of puzzling at
this.
Me![txtUnitPrice1].Value = DLookup("[Price]",
"Application.CurrentData.Alltables[tblWork]", "[Type]= Me![cboWork1].Text")
I'm getting an error saying the that Jet Data Engine can not find the
table.
I'll try to explain what I'm attempting and case anyone can give me a more
efficient way.
I'm trying to access a table(Work) with 2 fields Type and Price.
I'm trying to reach it from within a form that is not linked to the the
Work table(Could be the problem)
When I select a value from a Combo box(cboWork1)which is populated with a
value list pulled from the Type field in the Work table.
I want the Price field value looked up for the record that matches the Type
field selected from cboWork1 and entered into a text box(txtUnitPrice1).
Don