Hi davegri,
First thanks for the great tip's but:
1. I tried to convert my ACCDB file to ACCDR (I changed the suffix) and it works just fine, but in the real Runtime it false.
2. I tried the code you attached but I'm not sure I understand it, why the following line of code is not ״Chained text״ ?
Code:
arg = format(IdField,"000000000")
3. I did same update to your code and it works just fine, but again, it works only on the regular Access and not in the run time version
Code:
Public Sub SetId_9(tblName As String, IdField As String)
Dim SQL As String
SQL = "UPDATE " & tblName & " SET " & IdField & " = " & "Format([" & IdField & "]," & """" & "000000000" & """)"
CurrentDb.Execute SQL
End Sub