I am just trying to learn the basics of connecting to a Access database and sending and retrieving data.
So far, i have my form setup with edit boxes and a button etc, and a simple ADOQuery thrown on the page which is connected to my Access file through the connection string.
So far i have been successful in grabing the data from the database and showing it in a EDIT box by doing this
procedure TForm3.Button1Click(Sender: TObject);
begin
q1.Active:=true;
while not q1.Eof do begin
Edit1.Text:=q1.FieldByName('iName').Text;
Edit2.Text:=q1.FieldByName('iSize').Text;
Edit3.Text:=q1.FieldByName('iColour').Text;
q1.Next;
end;
end;
This works and puts the information into the boxes. But now i am stuck on how do i go about putting data IN the database?
So if someone was to enter something into a EDIT box, and i wanted to take that information and put it into a database, how do i go about this?
Hope this all makes sense! It's driving me crazy now ^^


Sign In
Create Account

Back to top









