G
Guest
I have a form (with subforms) which enters data into various tabes in my
database. I also want to enable users to enter part of the data on the form
to another table at their discretion (by clicking a button on the form). I've
scoured the help and these forums, but evry idea I have seems to quickly meet
a brick wall. Any pointers to the right direction would be helpful.
---More detail---
This problem arises from the solution to a bigger problem: My database has a
fixed number of records, with people updating informtion for 'their' subset
of records. At specific times, they may need to flag a particular record for
action by a third party, and this flag must be in a log in Excel. My idea is
to import the current log from Excel to a new table in the database, add the
record (with information from the current form) to this table, and export the
table back to Excel. I've got the importing and exporting working at the
click of a button, but I can't find the code to add the record/information to
the table in between the import and Export:
Private Sub Command0_Click()
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel12, "Sheet",
"Filename.xls", True
'add data to table "Sheet" ??
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel12, "sheet",
"Filename.xls", True
DoCmd.DeleteObject acTable, "Sheet"
End Sub
This sound like a realy simple question, but either it isn't or I'm
searching so hard for the answer I'm looking right past it.
Any help appreciated.
Thanks
Ray
database. I also want to enable users to enter part of the data on the form
to another table at their discretion (by clicking a button on the form). I've
scoured the help and these forums, but evry idea I have seems to quickly meet
a brick wall. Any pointers to the right direction would be helpful.
---More detail---
This problem arises from the solution to a bigger problem: My database has a
fixed number of records, with people updating informtion for 'their' subset
of records. At specific times, they may need to flag a particular record for
action by a third party, and this flag must be in a log in Excel. My idea is
to import the current log from Excel to a new table in the database, add the
record (with information from the current form) to this table, and export the
table back to Excel. I've got the importing and exporting working at the
click of a button, but I can't find the code to add the record/information to
the table in between the import and Export:
Private Sub Command0_Click()
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel12, "Sheet",
"Filename.xls", True
'add data to table "Sheet" ??
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel12, "sheet",
"Filename.xls", True
DoCmd.DeleteObject acTable, "Sheet"
End Sub
This sound like a realy simple question, but either it isn't or I'm
searching so hard for the answer I'm looking right past it.
Any help appreciated.
Thanks
Ray