navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Free FrontPage Templates

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Updating an Access Database from a Table in a Form

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Updating an Access Database from a Table in a Form
Page: [1]
 
MikeO

 

Posts: 16
From: near Geneva France
Status: offline

 
Updating an Access Database from a Table in a Form - 2/12/2002 18:34:30   
Can somebody help as I am a little rusty on VBScript.

I have a table with generated by DRW which has been modified to include text boxes on each row. Submit sends an array to my .asp update page for each box eg

RecID : 3,56,77,105,122,123......
Slection : Y,Y,N,Y,N,Y, ......

What is the VB syntax for using these arrays, ie how are they Dim'ed as an array and how can I find the number of occurrences so I can use For n = 1 to x to update the database ?

Thanks.


Mike O
Mojo

 

Posts: 2441
From: Chicago
Status: offline

 
RE: Updating an Access Database from a Table in a Form - 2/12/2002 19:08:45   
There are a few way to dim an array --

Dim arr(5)
Dim arr() - dynamic
Redim arr(10)- can change size of the array

The above are for single dimension array's. There are assorted details about each that you should check out.

I you had a string "RecID" that looked like:
"3,56,77,105,122,123"
You could do something like:
arrRecID = Split(RecID,",")
For i = 0 to UBound(arrRecID)
...
Next

Remember that VBS starts a count at zero (0).

Joe



(in reply to MikeO)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Updating an Access Database from a Table in a Form - 2/13/2002 0:15:01   
Heya Mike wb :)

§þððk¥
Database / DRW Q & A
VP-ASP Shopping cart
Spooky Login

(in reply to MikeO)
MikeO

 

Posts: 16
From: near Geneva France
Status: offline

 
RE: Updating an Access Database from a Table in a Form - 2/13/2002 0:21:23   
Hi Spooky, looks like the old place has had a lick of paint since I was last around.



Mike O

(in reply to MikeO)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Updating an Access Database from a Table in a Form - 2/13/2002 2:03:05   
Yeah, bit of a tickle up. You like? :)

§þððk¥
Database / DRW Q & A
VP-ASP Shopping cart
Spooky Login

(in reply to MikeO)
MikeO

 

Posts: 16
From: near Geneva France
Status: offline

 
RE: Updating an Access Database from a Table in a Form - 2/17/2002 14:38:29   
Thanks Joe, it works now.

My problem was it's not a true array, the values are seperated by ", " not ","

Mike O

(in reply to MikeO)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Updating an Access Database from a Table in a Form
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts