Question : sql syntax help to insert into an access table using vba editor

I need sql syntax help to programatically insert the value for audIP AS Expr4 into my Access table

The value for audIP (IP Address) comes from a function.

 fGetHostIPAddresses(Environ("ComputerName")).Item(1)

I have already tested this function separately and it is working well.  I just do not know the sql syntax for inserting this into my vba code that has the sql statement listed below.  Expert help please
1:
2:
3:
sSQL = "INSERT INTO " & sAudTmpTable & " ( audType, audDate, audUser, audIP ) " & _
            "SELECT 'EditFrom' AS Expr1, Now() AS Expr2, NetworkUserName() AS Expr3, " & sTable & ".* " & _
            "FROM " & sTable & " WHERE (" & sTable & "." & sKeyField & " = " & lngKeyValue & ");"

Answer : sql syntax help to insert into an access table using vba editor

how about

PlaySound(vbNullString, 0, 0)
Random Solutions  
 
programming4us programming4us