Hi all,
The following code allows some users to update an access table (on a shared LAN) from an excel workbook (code is within an excel module).
However it doesn't work for all users, seems to be users who do not have a local version of access installed. Clearly i'm not an expert....but I was wondering if there is an alternative way of coding this which would not require a local version of access installed by using JET. I'm just not sure how to put the code together.
Also one of your members kindly suggested Access Runtime in a related reply in different forum but i don't know if I can package this with Excel, Is there a step by step (Dummies) guide anyone can point me to?
Any help appreciated.
Dan
The following code allows some users to update an access table (on a shared LAN) from an excel workbook (code is within an excel module).
Code:
Dim accApp As Object
Dim strOrder As String, strCode As String
'DFII = txtDFIName.Value
strSQL = "INSERT INTO [PDI] ([Part No],[PDI Date],[P_Score],[Risk_Score])" & _
"VALUES (""" & P & """," & "#" & dt & "#" & ",""" & S & """, " & R & ")"
Set accApp = CreateObject("Access.Application")
With accApp
.OpenCurrentDataBase "Database.mdb"
.DoCmd.RunSQL strSQL
.Quit
End With
Set accApp = Nothing
However it doesn't work for all users, seems to be users who do not have a local version of access installed. Clearly i'm not an expert....but I was wondering if there is an alternative way of coding this which would not require a local version of access installed by using JET. I'm just not sure how to put the code together.
Also one of your members kindly suggested Access Runtime in a related reply in different forum but i don't know if I can package this with Excel, Is there a step by step (Dummies) guide anyone can point me to?
Any help appreciated.
Dan