thread732-333932
I realize that this is in reference to an old thread, but since it comes up on a search, and since someone else may have the same question to be answered, here it is:
You can not define a sort with multiple fields on a DataView and execute the FindRows method using a key that...
You might try the following SQL:
INSERT INTO HoursWithStatuses
( ssn, calcdate, HoursDate1, Hours1, HoursEndDate1, PrevStatDate, NextStatDate )
SELECT h.ssn, h.calcdate, h.HoursDate1, h.Hours1, h.HoursEndDate1, x.PrevStatDate, n.NextStatDate
FROM Work_Hours1 AS h
INNER JOIN (
SELECT...
Hello, JonFer,
That will not work, either. You will get a "Could not delete from specified tables" error.
If you stay with the original query syntax I provided, you will find it meets the requirement.
You might try something like the following (substitute highlighted text with actual table/field names):
DELETE T1.*
FROM MyTable T1
WHERE EXISTS (
SELECT T2.ID
FROM MyTable T2
WHERE T2.ID < T1.ID
AND T2.C10 = T1.C1
AND T2.C9 = T1.C2
AND T2.C8 = T1.C3
AND T2.C7 =...
You can use the SendObject method (ref: http://msdn.microsoft.com/en-us/library/aa220736(office.11).aspx)
For example:
DoCmd.SendObject acSendReport, _
"MyReport", _
acFormatRTF, _
"ToReceipient@mymail.com", , , _
"Test Subject", , True
Try:
With ISODBC
.Open "Provider=sqloledb;" _
& "Data Source=My Server Name;" _
& "Initial Catalog=My Db Name;" _
& "User ID=My Login;" _
& "Password=My Password;"
End With
Without knowing your SQL Server setup at home, versus your setup at work, I don't have...
If you are aware of the solution by Steven Lebans, ReportToPDF, you should also be aware that creating a PDF from a report is EXACTLY what it is FOR. With his solution, the following statement:
ConvertReportToPDF "MyReport", , _
"C:\MyFolder\MyReport.pdf", _
False, _
False
...will...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.