Ex.
Code:
Kill "C:\Temp\Test.xls"
Kill "C:\Temp\Test.xls"
If IsNull(BirthDate) then
strSQL = "SELECT *" & _
" FROM Table1" & _
" WHERE Person = 'AJ'"
Else
strSQL = "SELECT *" & _
" FROM Table1" & _
" WHERE Person = 'AJ'"
SELECT MAX(Table1.TheDate) AS MAX_DATE FROM Table1 WHERE [TheDate] <= Date();
strSQL = "INSERT INTO" & Me!MyShow & _ "SELECT *. FROM [InfoTable];"
strSQL = "INSERT INTO" & Me!MyShow & _ " SELECT * FROM [InfoTable];"
SELECT [qrycustomer #3].Facility
, 1 AS [Order], Format([MonthYear],"mmmm") AS [Month]
, DatePart("yyyy",[MonthYear]) AS [Year]
, "Compliant Observations" AS Items
, CStr([qryCustomer #3].TotalCompliant) AS Result
INTO tmaCustomer
FROM [qryCustomer #3];
Sub SetLEAs()
Dim MyCnt As Integer
Dim i As Integer
For MyCnt = 1 To 5
Application.SetOption "Confirm Action Queries", 0
MYSQL2 = "INSERT INTO DGBTestVariations2 "
Dim dbs As Database
Dim rs1 As Recordset, qdf1 As QueryDef
Set dbs = CurrentDb
Set qdf1 = dbs.QueryDefs("SubQuery")
Set rs1 = qdf1.OpenRecordset(dbOpenSnapshot)
rs1.MoveLast
rs1.MoveFirst
rs1.recordcount
Me.Combo31.RowSourceType = "Value list" Me.Combo31.RowSource = "spvr;mngr;user"
Me.Combo31.RowSourceType = "Value list" Me.Combo31.RowSource = "'spvr';'mngr';'user'"
Public Function DaysInYear (ByVal Year As
Leave a comment: