I have a form (with several controls: checkboxes, option buttons...), that displays only (1) record, and gets it's data from a table [tbe...] that also has only (1) record
on my form is an option button frame that lets the user select (1) of several records in a second table [tbl...]
the record in the first table [tbe...] is then replaced with the user's choice from the 2nd [tbl...]
...all of this works fine, but what I can't get to work, is an action that updates the controls on the form
I also tried moving the code: "me.requery" to the after update event; that did not produce favorable results either...
many thanks in advance,
mark
here's the code:
---------------------------------------
Private Sub frmPresetOption_beforeUpdate(Cancel As Integer)
Dim sSQL As String
DoCmd.SetWarnings False
sSQL = "Delete * from [tbeFixtureSchedulePrintOptions];"
DoCmd.RunSQL sSQL
sSQL = "INSERT INTO tbeFixtureSchedulePrintOptions" _
& " SELECT *" _
& " from tblFixtureSchedulePrintOptions" _
& " WHERE [PresetOption] = " & Me.frmPresetOption & ";"
DoCmd.RunSQL sSQL
Me.Requery
DoCmd.SetWarnings True