J
Jazz57
Good afternoon
I have a form that shows me the records that are suposed to be transfered to
Excel
Before this form, i have a dialog form with 2 DateTime Picker to select the
field FromDate and the ToDate (Start and End date). Maybe the DateTime Picker
is not the right solution, but i have no problems to change it.
After i select both date, i click on a button that hides me the dialog box
and opens the form so i can double check that the records are the right one
to be transfered i.e. that the selection with parameters went OK.
After that, i click on my button and the transfer is made.
Only with a small problem.
All the records from my Query are passed to Excel and not only those that i
want from the selection of date, altough my form shows me the selected
records ( and they are OK)
Q1: I don't know if this is possible (Transfer to Excel with a selection) .
Q2. I made some changes and i have a sintax error and i can't discover it or
where
Here is my Row source to the 2nd form:
PARAMETERS [Forms]![FrmdlgExcel]!DTPFromDate] DateTime,
[Forms]![FrmdlgExcel]![DTPToDate] DateTime; SELECT QDadosParaExcel.*
FROM QDadosParaExcel WHERE
(((QDadosParaExcel.DataDados)>=Forms!FrmdlgExcel!DTPFromDate And
(QDadosParaExcel.DataDados)<=Forms!FrmdlgExcel!DTPToDate));
DTPFRomDate Start date i want DateTime Picker
DTPToDate Final date i want DateTime Picker
QDadosParaExcel Query with the fields to be transfered to Excel
FrmdlgExcel Dialog Form to select the dates
i think i am close to the solution, but something is missing.
Can anybody help me.
Thanks in advance everyone for any help
I have a form that shows me the records that are suposed to be transfered to
Excel
Before this form, i have a dialog form with 2 DateTime Picker to select the
field FromDate and the ToDate (Start and End date). Maybe the DateTime Picker
is not the right solution, but i have no problems to change it.
After i select both date, i click on a button that hides me the dialog box
and opens the form so i can double check that the records are the right one
to be transfered i.e. that the selection with parameters went OK.
After that, i click on my button and the transfer is made.
Only with a small problem.
All the records from my Query are passed to Excel and not only those that i
want from the selection of date, altough my form shows me the selected
records ( and they are OK)
Q1: I don't know if this is possible (Transfer to Excel with a selection) .
Q2. I made some changes and i have a sintax error and i can't discover it or
where
Here is my Row source to the 2nd form:
PARAMETERS [Forms]![FrmdlgExcel]!DTPFromDate] DateTime,
[Forms]![FrmdlgExcel]![DTPToDate] DateTime; SELECT QDadosParaExcel.*
FROM QDadosParaExcel WHERE
(((QDadosParaExcel.DataDados)>=Forms!FrmdlgExcel!DTPFromDate And
(QDadosParaExcel.DataDados)<=Forms!FrmdlgExcel!DTPToDate));
DTPFRomDate Start date i want DateTime Picker
DTPToDate Final date i want DateTime Picker
QDadosParaExcel Query with the fields to be transfered to Excel
FrmdlgExcel Dialog Form to select the dates
i think i am close to the solution, but something is missing.
Can anybody help me.
Thanks in advance everyone for any help