Good day! The following code returns the first record in the recordset from the Test table:
... com.Connection = conn; com.CommandText = "Select * from Test"; OleDbDataReader myOleDbDataReader = com.ExecuteReader(); myOleDbDataReader.Read(); testDialog.textBox1.Text = myOleDbDataReader.GetString(1); testDialog.numericUpDown1.Value = myOleDbDataReader.GetInt32(2); testDialog.textBox2.Text = myOleDbDataReader.GetString(3); ...
How to achieve that value returned on the cursor record, but not the first record of the table, without cycles?