Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Email to Pager from access

Status
Not open for further replies.

InspectorJoe

Technical User
Oct 10, 2001
13
US
We have pagers with email addresses. The pagers, however, cannot view attachments. Is there a way to send a query object where the query being sent is in the body of the email text instead of an attachment?
 
Joe, If I understand what you are asking then you should do something like this;

dim db as database
dim rst as recordset
dim strsend as string
set db= currentdb
set rst = db.openrecordset("queryname")
rst.move first
do until rst.eof
strsend = rst.fields(0) & "'" & rst.fields(1) 'you pick
rst.movenext
docmd.sendobject,acformattxt,"me@here.com",,strsend,false
loop
rst.close
set db = nothing
set rst = nothing
 
Am I to use that code to create a module? I guess I not sure where or how to implement the code you suggested.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top