![]() |
|
|||||||
| ASP & VBScript Forum Need help from a webmaster with ASP or VBScript, you may ask in this forum? |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi,
I am fairly new to VBscript, although I have done some VBA. I need to connect to a database using VBScript and then read/write some data to the tables in the .mdb I have found the following code to connect to the mdb, which works well. Code:
Can anyone help me with the correct connection method please? |
|
This ad is part of our Revenue Sharing program |
|
||||
|
That is becuase you should be using SQL statments to add,modify, or retrieve data from the database.
SQL has some pretty simple syntax, if you want to read more check out this for example to add a record it would be soming like: "INSERT INTO the_table_you_want_to_insert_into (COL1,COL2,COL3) VALUES ('COL1_value','COL2_value','COL3_value')" to remove a record it would be something like this: "DELETE FROM the_table_you_want_to_delete_from WHERE COL1 = '1'" (this would delete any record where COL1 equals 1) To update data it would be like this: "UPDATE the_table_you_want_to_update SET COL1='2' WHERE COL1='1'" To get data from the database you do this: "SELECT * FROM the_table_you_want_to_select_from WHERE COL1 = '2'" (but then you gotta do some stuff in VB to actually get the data) |
|
|||
|
Thanks ALL
By the way, as I was looking around the SQL and searching for some other stuff I found a different way to connect; Code:
Typical, when I was actually looking for it I couldn't find it, look for something else and there it is! Anyway, thanks again. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 53.000.000 keywords database | Kevaro | SEO (Search Engine Optimization) | 1 | 09-19-2007 12:05 PM |