Dim m As Map
m = DBUtils.ExecuteMap(SQL1, "SELECT companynumber, companyname, companystreet, companycity, companystate, companyzip, companyphone1, companyphone2 FROM company WHERE companynumber = ?", Array As String(value))
If m.IsInitialized = False Then
Msgbox("No information found.","")
Else
txtNumber.Text = m.Get("companynumber")
txtName.Text = m.Get("companyname")
txtAddress.Text = m.Get("companystreet")
txtCity.Text = m.Get("companycity")
txtState.Text = m.Get("companystate")
txtZip.Text = m.Get("companyzip")
txtPhone1.Text = m.Get("companyphone1")
txtPhone2.Text = m.Get("companyphone2")'keys are lower cased!
End If