Re: about insert data....
From: Al Reid (areidjr_at_reidDASHhome.com)
Date: 08/06/04
- Next message: Rick: "Re: Text field that is a date"
- Previous message: Bobby: "Re: about insert data...."
- In reply to: Bobby: "Re: about insert data...."
- Next in thread: Val Mazur: "Re: about insert data...."
- Reply: Val Mazur: "Re: about insert data...."
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 6 Aug 2004 08:11:26 -0400
"Bobby" <bobby.saputra@epselindo.com> wrote in message news:ORB4Iu6eEHA.2044@TK2MSFTNGP10.phx.gbl...
> Thanks for your quick responce, Can you give me an example please?
>
> thanks
>
Since you did not supply the database you are using I will supply an example using dynamic SQL. I also included only the first
three fields. I assume that the three fields are string data. The strings are surrounded by apostrophes. You would omit the
apostrophes for numeric data. Date handling is database dependent. So here it is:
strSql = "INSERT INTO forest " & _
"(fld1, fld2, fld3) " & _
"VALUES('" & UCase(SLNO) & "', '" & UCase(empcode) & "', '" & UCase(Name) & "')"
FCON.Execute strSql, , adExecuteNoRecords
You get the picture. You can now replace fild1-fld3 with the correct field names and add the remaining fields to the SQL statement.
I hope this helps.
-- Al Reid How will I know when I get there... If I don't know where I'm going?
- Next message: Rick: "Re: Text field that is a date"
- Previous message: Bobby: "Re: about insert data...."
- In reply to: Bobby: "Re: about insert data...."
- Next in thread: Val Mazur: "Re: about insert data...."
- Reply: Val Mazur: "Re: about insert data...."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|