G
Guest
Hi there,
I'm trying to do the following,
Select Case Forms!frmLookup.optInvAmt.Value
Case 1
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, _
"qryFindGH", "f:\Documents and Settings\John\Desktop\exported.xls", True
There will be several other select statements so what I want to do instead
is have
my select statments change the value of a variable and have my
transferspreadsheet code run just once at the end. I did try this, but I get
an error message saying the object couldn't be found.
Can TransferSpreadsheet work with a variable or is there another way I can
do this?
Thanks
I'm trying to do the following,
Select Case Forms!frmLookup.optInvAmt.Value
Case 1
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, _
"qryFindGH", "f:\Documents and Settings\John\Desktop\exported.xls", True
There will be several other select statements so what I want to do instead
is have
my select statments change the value of a variable and have my
transferspreadsheet code run just once at the end. I did try this, but I get
an error message saying the object couldn't be found.
Can TransferSpreadsheet work with a variable or is there another way I can
do this?
Thanks