Pass through from informix

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi there,

How can i link the criteria in a pass-through query to a form?

This query works fine if i replace A and B with the proper dates.

SELECT currency, fdate, rate
FROM tRates
WHERE fdate between A and B

I need to link A and B with the fields date1 and date2 in getrates form.

Should i go for VB code only, and forget about the query? In this case
what's the script for a pass through?

I'm using Access 2002 to get values from an informix database.

Thanks,
Cabaco
 
You can set a reference to MS DAO and use code like:

Dim strSQL as String
strSQL = "SELECT currency..." & _
" FROM tRates " & _
"WHERE fdate Between " & Me.txtStart & " And " & Me.txtEnd
'not sure what the delimiter for dates is in informix...
Currentdb.QueryDefs("qsptYours").SQL = strSQL
 

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

Similar Threads


Back
Top