OK guys I have a qry that works - (between 2 dates and 1 filter from a drop down)
I need it to pick up some information from the form I am running it from (see Month bound) will this work?
any pointers
Dim rstGetRecordSet As Recordset
Dim objXL As Object
Dim objCreateWkb As Object
Dim objActiveWkb As Object
Set dbs = CurrentDb
Set objXL = CreateObject("Excel.Application")
Set objCreateWkb = objXL.Workbooks.Add
Set objActiveWkb = objXL.Application.ActiveWorkbook
objXL.Visible = True
objActiveWkb.Sheets.Add
objActiveWkb.Worksheets(1).Name = "Oxygen Bdx"
Set rstGetRecordSet = dbs.OpenRecordset("Oxygenqrymaster")
objActiveWkb.Worksheets("Oxygenqrymaster").Cells(1, 1) = "Cover Holder"
'objActiveWkb.Worksheets("Oxygenqrymaster").Cells(1, 2) = "Month Bound" ***** I want this to bea field on my form =me.Form!zzzfrm!month
I need it to pick up some information from the form I am running it from (see Month bound) will this work?
any pointers
Dim rstGetRecordSet As Recordset
Dim objXL As Object
Dim objCreateWkb As Object
Dim objActiveWkb As Object
Set dbs = CurrentDb
Set objXL = CreateObject("Excel.Application")
Set objCreateWkb = objXL.Workbooks.Add
Set objActiveWkb = objXL.Application.ActiveWorkbook
objXL.Visible = True
objActiveWkb.Sheets.Add
objActiveWkb.Worksheets(1).Name = "Oxygen Bdx"
Set rstGetRecordSet = dbs.OpenRecordset("Oxygenqrymaster")
objActiveWkb.Worksheets("Oxygenqrymaster").Cells(1, 1) = "Cover Holder"
'objActiveWkb.Worksheets("Oxygenqrymaster").Cells(1, 2) = "Month Bound" ***** I want this to bea field on my form =me.Form!zzzfrm!month