Question : Lookup table value and assign to text box

I need to lookup the last entry in a table "tbl_CustomerConcerns" in the field "Our Ref"  (its a numeric entry), add 1 to that number, then assign the new value to a text box "txtOurRef" on a form "frm_ComplaintForm"

Thanks for the great help

Answer : Lookup table value and assign to text box

txtBox1= DMax ("field","table") + 1
Random Solutions  
 
programming4us programming4us