J
jhsi
Hi,
I am using MS ACCESS 2000. Can anyone show me what's wrong
with my below code ? I want to change the column default
value via VBA script. It's doesn't work... Thanks!
Private Sub KioskName_AfterUpdate()
Dim strSQL As String
Dim cnn As ADODB.Connection
Set cnn = CurrentProject.Connection
strSQL = "ALTER TABLE [tbltables] ALTER COLUMN [KioskID2]
DEFAULT 'Jean'"
cnn.Execute strSQL
End Sub
I am using MS ACCESS 2000. Can anyone show me what's wrong
with my below code ? I want to change the column default
value via VBA script. It's doesn't work... Thanks!
Private Sub KioskName_AfterUpdate()
Dim strSQL As String
Dim cnn As ADODB.Connection
Set cnn = CurrentProject.Connection
strSQL = "ALTER TABLE [tbltables] ALTER COLUMN [KioskID2]
DEFAULT 'Jean'"
cnn.Execute strSQL
End Sub