strSQL = "Delete * from LakeInfoObserv in H:\LakeStorageDB.mdb"
or
strSQL = "Delete * from [;database=H:\LakeStorageDB.mdb].LakeInfoObserv"
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
"Kou Vang" <(E-Mail Removed)> wrote in message
news:9740FDF4-862A-4F8C-AAEC-(E-Mail Removed)...
>I am trying to delete a table from another database before I transfer new
> data into it from the current DB. I tried to run some SQL that I picked
> up
> online but it didn't work. Any ideas on how to proceed with this?
>
> Option Explicit
>
> strSQL = "Delete * in H:\LakeStorageDB.mdb from LakeInfoObserv"
>
> docmd.runsql strsql
>
> I get a syntax error, missing operand?
>
> Thanks,
>
> Kou