Quote:I would like it to auto type other fields from the same to LEs on the main form that would be like xlookup filename(newdispatch), key(company name), form name(equipment list)!ext key(company name), a second key field (equipment type) then target.
Once you have got the key in the form with Userselect, or Popupmenu or Combobox, getting other fields to be filled out should be easy.
On Element Exit Event, write multiple @lookups if you are getting value from different forms, or use @XLookupsourcelist if you are getting all the values from the same forms.
Target1 = @xlookup (filename, key, "form!ext.key", "Source")
Target2 = @xlookup (filename, key, "form!ext.key", "Source")
Target3 = @xlookup (filename, key, "form!ext.key", "Source")
On and on....
If you are getting values from same form then
var vReturnval as string
var str1 as string
var str2 as string
var str3 as string
vReturnval = @XLookupsourcelist (Filename, key, "Form!ext.key", "source1;source2;Sourc3")
str1 = @AccessStringArray(vReturnval, 1)
str2 = @accessStringArray(vReturnval, 2)
str3 = @accessStringArray(vReturnval, 3)
Target1 = str1
Target2 = str2
Target3 = str3
Quote:I have the natural links or could it be done in relative links instead?
Once you get the key value in the form you are filling out, that should not make any difference.
FlipGilbert, did I understand right as what are you trying to do? or I am off the target!!!