Sorry, solved the problem - I was using ADOQuery.RecNo to tell me the Record Count, and hence it was telling me the location of the pointer in the returned data set - not the number of records returned.
Hi Everyone,
In one of my units I have an ADOQuery component, which I initialize like so:
with ADOQuery1 do begin
Close;
ConnectionString := 'Provider=Microsoft.Jet.OLEDB.4.0;Data Source='+frm_Technician.databaselocation+'btbse_ScienceBookings.mdb;Persist Security Info=False'...
Brilliant, thank you for your replies. As always, hours of agonising was solved with a few characters. The working code is below:
ADOCommand1.CommandText := 'INSERT INTO [tbl_Bookings] ([User], [Period]) VALUES (15, ''p1'')';
ADOCommand1.CommandType := cmdText;
ADOCommand1.Execute...
Hi everyone, when I try and run this code, Delphi tells me I the INSERT statement has a syntax error when, as far as I can see, it doesn't.
ADOCommand1.ConnectionString := 'Provider=Microsoft.Jet.OLEDB.4.0;Data Source='+frm_LogIn.SpreadSheetLocation+'btbse_ScienceBookings.mdb;Persist...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.