combo box column 1 query

  • Thread starter Mitchell_Collen via AccessMonster.com
  • Start date
M

Mitchell_Collen via AccessMonster.com

Can anyone tell me what this doesn't work? The function is supposed to refer
to the first column combo box.
FYI: the data comes of sql server.

SELECT Station, TxDatetime, Drawer, SubDrawer, Pkt, GenMedName,
BrandMedName, MedID, Amt, [Min], [Max], UserName, UserID, PtID, PaType
FROM dbo.phmPYXHx
WHERE (UserName = N'[Form]!PX_UserReports!combo0!Column(1)') <--
here is where i refer to column1 of the combo

Misty
 
J

John W. Vinson

Can anyone tell me what this doesn't work? The function is supposed to refer
to the first column combo box.
FYI: the data comes of sql server.

SELECT Station, TxDatetime, Drawer, SubDrawer, Pkt, GenMedName,
BrandMedName, MedID, Amt, [Min], [Max], UserName, UserID, PtID, PaType
FROM dbo.phmPYXHx
WHERE (UserName = N'[Form]!PX_UserReports!combo0!Column(1)') <--
here is where i refer to column1 of the combo

The Column property is zero based - Column(0) is the first column, Column(1)
the second.

John W. Vinson [MVP]
 
D

Douglas J. Steele

That looks as though it might be a pass-through query (it's dbo.phmPYXHx,
not dbo_phmPYXHx), in which case you can't refer to parameters.
 

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