John thomas
Registered User.
- Local time
- Today, 12:10
- Joined
- Sep 4, 2012
- Messages
- 206
Hi I have a split database ,and I need to update the Table default value of a field
Rather than go into the table I would prefer to use a form
I found this code but it wont work,I presume becouse my data base is split
Private Sub UpdateInvoiceReportNumber_Click()
If Not IsNull(Me.txtDefValue) Then
CurrentDb.TableDefs("PaymentsT").Fields("SelectInvoice").DefaultValue = Me.txtDefValue
MsgBox "Default Value has been changed to " & Me.txtDefValue
Else
MsgBox "You must enter a new Default Value before you can assign it!"
txtDefValue.SetFocus
End If
End Sub
I get an error not supported on linked Tables
Any ideas Please keep it easy im new to VBA
Rather than go into the table I would prefer to use a form
I found this code but it wont work,I presume becouse my data base is split
Private Sub UpdateInvoiceReportNumber_Click()
If Not IsNull(Me.txtDefValue) Then
CurrentDb.TableDefs("PaymentsT").Fields("SelectInvoice").DefaultValue = Me.txtDefValue
MsgBox "Default Value has been changed to " & Me.txtDefValue
Else
MsgBox "You must enter a new Default Value before you can assign it!"
txtDefValue.SetFocus
End If
End Sub
I get an error not supported on linked Tables
Any ideas Please keep it easy im new to VBA