Hello,
I need some help troubleshooting the code below. I'm getting a run-time error code 3061, "too few parameters, expected 1". I've searched online (google) but haven't found anything that could help me. Thank you.
The code works when the referenced query doesn't have a criteria. I'm using
criteria on the query.
Any help or advise is much appreciated.
I've confirmed it that the tempvars is causing the code to break. Question is how can I add this code in the vba so the query is filtered by username (tempvars!usern ame)?
Thank you.
I need some help troubleshooting the code below. I'm getting a run-time error code 3061, "too few parameters, expected 1". I've searched online (google) but haven't found anything that could help me. Thank you.
Code:
Set rst1 = db.OpenRecordset("qry_selected_email_distinct", dbOpenDynaset)
Code:
[TempVars]![username]
Any help or advise is much appreciated.
I've confirmed it that the tempvars is causing the code to break. Question is how can I add this code in the vba so the query is filtered by username (tempvars!usern ame)?
Thank you.
Comment