Re: Make default value "real"

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Allison, I'm not 100% clear about what you want to do here.

Are you saying that every time the user enters a new record in the main form, you want to automatically insert the 'blue' record into the subform's table as well? If so, you could do that by executing an append query statement in the AfterInsert event procedure of the main form.

I'm not convinced that's a good idea. Does 'blue' really apply to everyone? There are cases where this is valid, but not as a general rule.

If that's not what you want to do, then it might be best to leave the combo's Default Value blank, so it's obvious to the user that they must select 'blue' if they want it.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Allison" <Allison@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:041CB1BD-7C47-468D-BF6B-891BEB43E48C@xxxxxxxxxxxxxxxx
Access 2003 SP3
Win XP SP2

I have a sub-form with a single combo box. The combo box is tied to a
table, and the subform is tied to a table that combines the main from ID and
the value of the combo box and creates an entry. (Relational yes/nos from
Allen Browne: http://allenbrowne.com/casu-23.html ).

I've set the default value of the combo box to "1", which displays my first
entry option (let's cal that "blue"). This displays the word "blue" but
doesn't actually capture it to the combination table in the same manner that
it would if "blue" were SELECTED, not just displayed.

Is there a way to SELECT a value by default - not just display it?

.



Relevant Pages

  • Re: Subform displays empty box
    ... Allen Browne - Microsoft MVP. ... There is a display bug in Access. ... If I click on a different tab within my subform the text is ...
    (microsoft.public.access.forms)
  • Re: Hyperlinks in a query
    ... Allen Browne - Microsoft MVP. ... Once I get this formula worked out, will the result be a hyperlink? ... Through a query, I have brought together this field and my path to the ... I want to display this as a hyperlink. ...
    (microsoft.public.access.queries)
  • Re: Subform displays empty box
    ... Allen Browne - Microsoft MVP. ... Tips for Access users - http://allenbrowne.com/tips.html ... It should be possible to SetFocus to another control on the same form in the ... I removed the setfocus and the information does display. ...
    (microsoft.public.access.forms)
  • Re: Display Images with each record filename is stored in field..
    ... Rick ... Allen Browne - Microsoft MVP. ... the appropriate picture to display ie Tank123.jpg ...
    (microsoft.public.access.forms)
  • Re: KDE scripting
    ... > that you could use in scripts as a ... > and up pops a kde dialog box saying 'display me'. ... Kevin Nathan ...
    (alt.os.linux.suse)