Infamous 'Undefined function' with query

G

google3luo359

I have an update query as follows:

UPDATE AEP SET AEP.Grade = [Forms].[frmPass].cboStudNum.Column(2)
WHERE (((AEP.Grade) Is Null) AND
((AEP.StudNum)=[Forms]![frmPass]![cboStudNum]));

When I run it I get the following error:

Undefined function ' [Forms]![frmPass]![cboStudNum.Column(2)] ' in
expression.

cboStudNum is a combo with three columns.
Widths ares 1",0",0".

I need to take the value from the third column and throw it into table
AEP.

Any ideas how I can get this to work?

TIA Ric
 
G

google3luo359

And with [Forms]![frmPass]![cboStudNum.Column(2)]

I get: 'Invalid bracketing of name'


Hope this gives more clues. Ric
 
R

Rick Brandt

I have an update query as follows:

UPDATE AEP SET AEP.Grade = [Forms].[frmPass].cboStudNum.Column(2)
WHERE (((AEP.Grade) Is Null) AND
((AEP.StudNum)=[Forms]![frmPass]![cboStudNum]));

When I run it I get the following error:

Undefined function ' [Forms]![frmPass]![cboStudNum.Column(2)] ' in
expression.

cboStudNum is a combo with three columns.
Widths ares 1",0",0".

I need to take the value from the third column and throw it into table
AEP.

Any ideas how I can get this to work?

TIA Ric

A query can't use the .Column() property directly. Try wrapping the form
reference in Eval().
 
G

google3luo359

Rick said:
A query can't use the .Column() property directly. Try wrapping the form
reference in Eval().


Thanks Rick! I got it working now.
And let's also bless Stephen Lebans and Google. For it came to pass on
Sat, Jun 5 1999 at 12:00 am that he explained to another desperate
soul how to get around this problem.

Ric :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top