private void btnLoad_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(edtID.Text)) { return; } try { record.Load(new NameValueDataStoreKey(record.fldID.FieldName, edtID.Text)); } catch (Exception error) { record.CancelLoad(); MessageBox.Show("Could not load data for supplied id. Driver said: \n\n" + error.Message); return; } }