thisisntwally
CE&A
- Local time
- Today, 05:33
- Joined
- Jun 27, 2007
- Messages
- 246
I have a combobox, populated from a lookup table and a button which opens a form to add new values for the combobox.
Heres what i would like to do (users idea, not mine, apparently clicking the add button might be too confusing for some old fogies)
If the user types a value which is not in the list (dcount?) open the addnew form with the new value. maybe something like
on lost focus
if dcount(me.cboVALUE, lkupValue, me.cboValue = lkupvalue!Value) = 0 then
DoCmd.openForm (addValue,,,)
a. Do you think this can be done?
b. If so, How can i go about passing the value from Me.cboValue to addValue.txtValue?
also if you are an expert maybe you could take a look at this thread:
http://www.access-programmers.co.uk/forums/showthread.php?t=135141
Heres what i would like to do (users idea, not mine, apparently clicking the add button might be too confusing for some old fogies)
If the user types a value which is not in the list (dcount?) open the addnew form with the new value. maybe something like
on lost focus
if dcount(me.cboVALUE, lkupValue, me.cboValue = lkupvalue!Value) = 0 then
DoCmd.openForm (addValue,,,)
a. Do you think this can be done?
b. If so, How can i go about passing the value from Me.cboValue to addValue.txtValue?
also if you are an expert maybe you could take a look at this thread:
http://www.access-programmers.co.uk/forums/showthread.php?t=135141