I have added:-
DoCmd.RunCommand acCmdSpelling
after updating a memo field - if there is a spelling mistake then the box pops up for the corrections.
However is there a way of supressing the "spelling complete" message if the spelling is OK?
:banghead:
I am creating and saving a pdf version of a report and then opening for viewing
In the viewing I can use the "ID" no to link it, but in the Docmd.OuptutTo I can't see where in the syntax I can put the equivalent of "[ID]=" & [ID],
can anyone help??
ReportName = "ABC123"...
Final stupid question on my nested loop
How do I put a variable into the form name to replace frmABC (as I get this from my data)
myrec2 = Forms!?????.Recordset
I have some code below that generates emails for me - it includes a nested loop. Since the Reports definition allows both sent to a pre-defined mail list - or has a nested loop to send a customised report to specific users
When I try and run I get error message "Loop without Do"
I cant see why...
I have a linked excel spreadsheet to my database but now I want to IMPORT the data into an access table
The spreadhseet is linked to queries - what is the correct sequence to replace the linked excel with the new table?
I am automatically send a pdf report in an email
does anyone know how to send a selection parameter to select just particular record from the report??
DoCmd.SendObject acReport, StDocName, acFormatPDF, MailTo, MailCC, MailBcc, Subject, MailGreeting & MailMessage & MailSignature, True
Thanks...
I've put in an "if" statement and forced the pdf format which now works ok
However the original data form opens in "filtered" mode
StDocName = "frmReportsInternal"
DoCmd.OpenForm StDocName, acNormal, "", "", , acNormal
how can I force to open all records
here is an odd one ......
this works
DoCmd.SendObject acReport, ReportName, acFormatPDF, SendTo, SendCc, SendBcc, Subject, Message, True, ""
but this doesn't
Dim MailFormat As String
MailFormat = myrec![MailFormat] ' MsgBox MailFormat...