I only want there to be 2 possible values in this field, which will come from a data entry form that various users will access. the two possible values I want to be RELS and Bank Direct.
Having been advised before on this forum that it was better to avoid using some of the trickier field datatypes in the Table design (like lookup or combo/list), and instead address them at the point of data entry,...which kind of made sense to me because having table fields whose design was something like that tended to complicate the running of queries........I have the field as simply Text type in the table.
But I want on my data entry form to have a combobox or listbox (I was thinking listbox so the users can always see the values displayed as choices, and there are only 2 anyway). I'm a little confused on how to do this.
I created an unbound listbox on my form, then changed its record source to the field Channel but then when I added code:
CODE
Private Sub listchannel_Enter()
Me.listchannel.AddItem "Bank Direct", 1
Me.listchannel.AddItem "RELS", 2
End Sub
it told me the record source type had to be changed to Value List, which makes it unbound again.Me.listchannel.AddItem "Bank Direct", 1
Me.listchannel.AddItem "RELS", 2
End Sub
How do I get users to only choose from 2 options to put in this field, without changing table design?
PS. I mean I could use checkboxes or something, but that wouldn't be bound to anything and would require some additional coding that I'm uncertain of, to get the value in the table field at the same time the form updates everything else which is all bound.