I am trying to make sure I am doing my homework prior to asking any question.
IM just going to ask a basic capability question. Is it possible to get the default value from a different table in table design mode?
I am trying to make sure I am doing my homework prior to asking any question.
IM just going to ask a basic capability question. Is it possible to get the default value from a different table in table design mode?
Hi
If you need to get a value from another table then you would need to set the DataType of the Field to a Number, Long Integer
Then on the Form that is bound to the Table you would create a Combobox to Lookup the values from the other table.
You can PM me if you need further help.
Good Reading https://docs.microsoft.com/en-gb/off...on-description
Strictly speaking, pretty sure the answer is no.Is it possible to get the default value from a different table in table design mode?
Why? Default can be text too.you would need to set the DataType of the Field to a Number
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.
Not in table design but it is trivial in a form bound to the table. If you really need to do it in a table I believe you can achieve that using a data macro AfterInsert to call a custom VBA function (in which you can get the values from the other table using simple dLookups).
Cheers,
If you go for the Combobox or Listbox Options then you can do it in the Table design time itself. The Table Field Property Sheet have two tabs, the second one is the Lookup Tab. On the Lookup Tab we have the ListBox and Combobox Options besides the default TextBox.
If the Default value is a Constant then we can assign it on the General Tab itself.
I know these things are not anything new, just thought of refreshing my memory.