Add info to DB without DB wizard 
Author Message
 Add info to DB without DB wizard

Hello.

I would like to add info to a Access 97 database from a FrontPage 98 web
without using the database region wizard.

I am purely guessing I need three things to do this:

1) A recordset
2) A method to be used on the recordset
3) Proper SQL syntax for the data I would like to add

I am guessing it would look something like this:

<%
Set rsMySet = CreateObject("ADODB.Recordset")
SQL = "SELECT * FROM Table1"
rsMySet.Open SQL, "DSN=db1"
' With the recordset open, I can now add a record
rsMySet.(some method, perhaps AddNew?)
' Then, perhaps some SQL like:
SQL2 = "INSERT INTO Table1 (Field1) VALUES ('Test Data')"
rsMySet.(some method) SQL2
%>

Am I even close?

Thanks,
Chris Smith



Sun, 29 Apr 2001 03:00:00 GMT  
 Add info to DB without DB wizard
This site should be able to help.  rg
http://www.takempis.com/

--
R.W. Gerling, MVP--FrontPage
http://www.rgerling.com

Have A Good Day

Quote:
>Hello.

>I would like to add info to a Access 97 database from a FrontPage 98 web
>without using the database region wizard.

>I am purely guessing I need three things to do this:

>1) A recordset
>2) A method to be used on the recordset
>3) Proper SQL syntax for the data I would like to add

>I am guessing it would look something like this:

><%
>Set rsMySet = CreateObject("ADODB.Recordset")
>SQL = "SELECT * FROM Table1"
>rsMySet.Open SQL, "DSN=db1"
>' With the recordset open, I can now add a record
>rsMySet.(some method, perhaps AddNew?)
>' Then, perhaps some SQL like:
>SQL2 = "INSERT INTO Table1 (Field1) VALUES ('Test Data')"
>rsMySet.(some method) SQL2
>%>

>Am I even close?

>Thanks,
>Chris Smith




Sun, 29 Apr 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Visual Basic App using Foxpro DB vs Access DB vs SQL Server DB

2. Visual Basic App using Foxpro DB vs Access DB vs SQL Server DB

3. HOWTO: Download Access DB With OCX That Manages That DB

4. HOWTO: Download Access DB With OCX That Manages That DB

5. Use a db without creating a DSN

6. Can VBScript under WinScriptHost connect to Access db without Access being installed on the workstation

7. Selecting random db questions without duplication

8. Can VBScript under WinScriptHost connect to Access db without Access being installed on the workstation

9. use vb script to pull info from access db

10. Missing info : Using a SQL DB with ADO

11. Refreshing info from a DB...

12. Adding records to server-side Access db

 

 
Powered by phpBB® Forum Software