G
Guest
I have a table of values and would like to set one of them as a default
I have added a Yes/No field to the table to do this.
On the form, is there a way of making only one selection True (i.e. set all others to False)
I have tried using a recordset, but it isn't working. (see below
Private Sub Default_Click(
Dim rst As Recordse
Dim ID As Lon
ID = RecordI
Set rst = Me.Recordse
Do While Not rst.EO
If rst!ID <> ID The
rst.Edi
rst!Default = Fals
rst.Updat
End I
rst.MoveNex
Loo
Set rst = Nothin
End Su
I have added a Yes/No field to the table to do this.
On the form, is there a way of making only one selection True (i.e. set all others to False)
I have tried using a recordset, but it isn't working. (see below
Private Sub Default_Click(
Dim rst As Recordse
Dim ID As Lon
ID = RecordI
Set rst = Me.Recordse
Do While Not rst.EO
If rst!ID <> ID The
rst.Edi
rst!Default = Fals
rst.Updat
End I
rst.MoveNex
Loo
Set rst = Nothin
End Su