I
I'm a Trampoline
The following doesn't work. It gets hung up on the .AddNew step.
********************
Set preferencesRecordset = CurrentDb().OpenRecordset("SELECT * FROM
Preferences;")
If preferencesRecordset.RecordCount = 0 Then
With preferencesRecordset
.AddNew
.Edit
![DO FIELD STUFF IN HERE]
.Update
End With
End If
********************
Also, is there a reason why I can only get the recordset to work with
SQL, I would have thought I could have just had ("Preferences",
dbOpenTable) after OpenRecordset, but that doesn't seem to want to work.
I'm just using jet.
Thanks to anyone that can help.
********************
Set preferencesRecordset = CurrentDb().OpenRecordset("SELECT * FROM
Preferences;")
If preferencesRecordset.RecordCount = 0 Then
With preferencesRecordset
.AddNew
.Edit
![DO FIELD STUFF IN HERE]
.Update
End With
End If
********************
Also, is there a reason why I can only get the recordset to work with
SQL, I would have thought I could have just had ("Preferences",
dbOpenTable) after OpenRecordset, but that doesn't seem to want to work.
I'm just using jet.
Thanks to anyone that can help.