Private Sub Command1_Click() findcust1 = findcust cust = Customer custTableId = 18 FIELDNO = 1 Call CFRONT2.OpenTable(cust, custTableId) custrec = CFRONT2.AllocRec(cust) [b]tmpvar = CFRONT2.FindRec(cust, custrec, findcust1)[/b] TxtCustName = CFRONT2.GetFieldData(cust, custrec, 2) TxtCustNo = CFRONT2.GetFieldData(cust, custrec, 1) End SubProblem is when I insert customer code in textbox and click on button bit it will not search that no. in customer table.
Comments
This works for finding primary key values. Otherwise you need to use SetRange or SetFilter to first apply a filter, then use the "-" search method to get the first mathing record.
This posting is provided "AS IS" with no warranties, and confers no rights.