CJBIRKIN
Drink!
- Local time
- Today, 13:46
- Joined
- May 10, 2002
- Messages
- 256
Hi
I am trying to use a combobox to create 2 entries is a table. The first entry is simply the selected item from the combobox, the second is created as follows
My problem is a catch 22. The record doesn't exist to be cloned until i complete certain data items one of which is the one being created here, and for the same reason i cannot force a save first as i get error messages saying the data item is missing.
Is there anyway to do this?
Cheers
Chris
I am trying to use a combobox to create 2 entries is a table. The first entry is simply the selected item from the combobox, the second is created as follows
PHP:
Private Sub CMBO_OPERATOR1_AfterUpdate()
Dim rst As DAO.Recordset
Set rst = Me.RecordsetClone
Me.Bookmark = rst.Bookmark
If Me.CMBO_OPERATOR1 = 1 Then
rst.Edit
rst![OPERATOR_ID_FK2] = 3
Else
rst.Edit
rst![OPERATOR_ID_FK2] = 4
End If
rst.Update
Set rst = Nothing
Me.TXT_OPERATOR2.Requery
End Sub
My problem is a catch 22. The record doesn't exist to be cloned until i complete certain data items one of which is the one being created here, and for the same reason i cannot force a save first as i get error messages saying the data item is missing.
Is there anyway to do this?
Cheers
Chris