Using 'column(n)' in a query/SQL

V

Vsn

Hi all,

Can some one tell me how I can use the value of a combobox.column(1) in a
query or SQL string?

Like:
Criterea >= [Forms]![frmOverview]![cmbDateRange]!Column(2)

I get the error message 'undefind function in expression'..............

Thx,
Ludovic
 
V

Vsn

Hi all,

I made a work-around with a function (below), which i call from the query.
It seems to work the way i needed it.

Function DateValue(Optional intColumn As Integer = 2)
DateValue = Form_frmOverview.cmbDateRange.Column(intColumn)
End Function

Sorry to bother.

Cheers,
Ludovic
 

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