Parameter Data Type Problem
- From: "BillCo" <coleman.bill@xxxxxxxxx>
- Date: 30 Jun 2006 01:18:08 -0700
A2000, DAO 3.6 ref set, 2 Parameters in query from an unbound form.
Dim db As DAO.Database
Dim rst As DAO.Recordset
Dim qryDef As DAO.QueryDef
Dim prm As DAO.Parameter
Set db = CurrentDb
Set qryDef = db.QueryDefs("qryWeeklyCreditClass")
For Each prm In qryDef.Parameters
prm = Eval(prm.Name)
Next
Set rst = qryDef.OpenRecordset <========== Breaks here (3464,
Data Type mismatch)
I have two *possible* reasons:
1. Query references several sub queries, each of which also reference
the form parameters
2. Parameters are dates. I've tried concatonating "#"s, and using
cdate() but no joy
Needless to say, the query runs fine normally.
Anyone know why this is happening or how to get around it? Starting to
lose the plot on this one!!!
.
- Follow-Ups:
- Re: Parameter Data Type Problem
- From: Allen Browne
- Re: Parameter Data Type Problem
- Prev by Date: Re: .bak and .mdb file - corruption
- Next by Date: Re: Parameter Data Type Problem
- Previous by thread: data in url
- Next by thread: Re: Parameter Data Type Problem
- Index(es):
Relevant Pages
|