G
Gibson
I am using the following code to attenot ti open a recordset and add a new
record to it. I'm using Access2003 and the databases are split ( backend
with data is in different directory front end with all forms etc) Is this a
proper way to open a recordset with a split database? I,m new to ADO. Every
time I run this code (it's behind Onclick event of command button) I receive
an error about Function is not available in expressions in table-level
validation expression. There are no validations rules or text in the fields
of this table. Any thoughts or maybe a place to look for answers. I'm at
my wits end.
Thanks
Dim rs2 As New ADODB.Recordset
rs2.Open "tbl1", CurrentProject.Connection, adOpenDynamic,
adLockOptimistic
If rs2.EOF Then
rs2.AddNew
rs2![Field1] = Forms!frm1!Field1
End if
record to it. I'm using Access2003 and the databases are split ( backend
with data is in different directory front end with all forms etc) Is this a
proper way to open a recordset with a split database? I,m new to ADO. Every
time I run this code (it's behind Onclick event of command button) I receive
an error about Function is not available in expressions in table-level
validation expression. There are no validations rules or text in the fields
of this table. Any thoughts or maybe a place to look for answers. I'm at
my wits end.
Thanks
Dim rs2 As New ADODB.Recordset
rs2.Open "tbl1", CurrentProject.Connection, adOpenDynamic,
adLockOptimistic
If rs2.EOF Then
rs2.AddNew
rs2![Field1] = Forms!frm1!Field1
End if