Paste Clipboard

K

Kathy Webster

OpenRecordset, and loop through the records.

Hmm, I know you've spent a lot of time already, but care to walk me through
trying this as a solution instead?
 
K

Kathy Webster

OpenRecordset, and loop through the records.
Hmm, I know you've spent a lot of time already, but care to walk me
through trying this as a solution instead?

Is that a resounding "no"?
 
K

Kathy Webster

Thank you Allen, no I never saw your reply. Will this work for a query as
well as a table? Would I just replace MyTable with MyQuery?
Then, how would I insert the looped field contents into the TO line of the
email?
 
A

Allen Browne

Give it a try, Kathy, and see.

(Or you could just use the name of the query as strSql.)
 
K

Kathy Webster

OK. Did that. Added reference to Microsoft DAO 3.6 Object Library, Removed
reference to Microsoft ActiveX Data Objects 2.1 Library. It compiled.

Now when I run the code, I get:
Runtime error: 3061
Too few parameters. Expected 2.
....and this is in yellow:
Set rs = DBEngine(0)(0).OpenRecordset(strSql)
 
K

Kathy Webster

I found a problem...I wasn't referencing the right field name in my query. I
corrected that...now I get:

Runtime error: 3061
Too few parameters. Expected 1.
 
D

Douglas J. Steele

Double check that DA_EmailSL still opens on its own. Given how little code
there is, that's really the only possibility.
 
K

Kathy Webster

Yes, DA_EmailSL still opens on its own.

Douglas J. Steele said:
Double check that DA_EmailSL still opens on its own. Given how little code
there is, that's really the only possibility.
 
D

Dory A. Lottner

Kathy Webster said:
I have text in my clipboard from an MSAccess table. How can I paste it into
the TO line of my email? My users could be using one of many email
programs, so I am getting to their email program using MSAccess's
SendObject command. The cursor is now in the user's email TO line, with
the clipboard full of email addresses. How do I simply paste the text?

TIA,
Kathy
 

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