hi
yes it does make sense but you have a problem. the way i told you is a one
way street. sending info to access is the other one way street. and you are
in danger of getting caught in a round robin where data goes from excel to
access then back to excel. sort of like chasing your tail. and you'll have
data stored in 2 places. most database managers think this is redundunt.
work around....
if your excel data is layed out like a database ie. fields(columns) and
records(rows) then you can declare it a named range. this named range can be
linked to access as a table and access will recognize it as a table. then to
up date the table in access all you have to do is re-declare the named range
in excel. a before save event should do it.
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Dim srng As Range
Sheets("sheet 1").Select
Range("A1").Select
Set srng = Range(Range("A1"), _
.End(xlDown).Offset(0, 7)) 'last offset =#columns in your db.
ActiveWorkbook.Names.Add Name:="yourrangename", _
RefersToR1C1:=srng
End Sub
now each time data is add to excel and saved, the linked table in access is
updated.
the access table you now have, is no longer needed unless you are currently
using it in a millior queries. also ms query is no longer needed.
post back if problems
Regards
FSt1