Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 22nd, 2004, 12:15 AM   #1
bentan30
Newbie
 
Join Date: Jun 2004
Posts: 1
Rep Power: 0 bentan30 is on a distinguished road
My access frontend connects to a SQL server. This file also connects to local tables. This means that as the user is manipulating the data, it is stored on a local table. Only when he clicks on the save button, then is the data from the local table transferred to the SQL server.

Using the codes below, I've managed to open the recordset in the SQL server.

Dim rst1 As New ADODB.Recordset

'open connection
cnn.Open xDataSource

rst1.Open "Select * From " & xRecordset2 & " Order by ID", cnn, adOpenStatic, adLockBatchOptimistic, adCmdText

However, I'm not sure how to open the recordset in the local table. As such, data cannot be transferred. Pls advise...

Thank you.
bentan30 is offline   Reply With Quote
Old Jun 22nd, 2004, 9:58 AM   #2
big_k105
PFO Founder

 
big_k105's Avatar
 
Join Date: Mar 2004
Location: Fargo, ND
Posts: 1,649
Rep Power: 10 big_k105 is on a distinguished road
Send a message via AIM to big_k105 Send a message via MSN to big_k105 Send a message via Yahoo to big_k105
just to make sure im understanding you correctly. you are connecting to a sql server and getting info and putting it into an access database on your local system and then after your done editing from access you move it back to the sql server and you want to know how to open the recordset for the access database? if this is correct let me know. i was wondering tho wouldnt it be easier to just create a form that you can pull the data into in vb and then edit it there and then save it back? i cant remember how to get the recordset for access but it shouldnt take me to long to find out how again
__________________
BIG K aka Kyle
Programming Forums
Kyle K Online

Please do not PM or email me programming questions. Post them in the forums instead.
big_k105 is offline   Reply With Quote
Old Jun 22nd, 2004, 10:06 AM   #3
big_k105
PFO Founder

 
big_k105's Avatar
 
Join Date: Mar 2004
Location: Fargo, ND
Posts: 1,649
Rep Power: 10 big_k105 is on a distinguished road
Send a message via AIM to big_k105 Send a message via MSN to big_k105 Send a message via Yahoo to big_k105
ok i found a good website that should help explain how to do this
http://www.devdos.com/vb/lesson4.shtml

good luck and welcome to the forums
__________________
BIG K aka Kyle
Programming Forums
Kyle K Online

Please do not PM or email me programming questions. Post them in the forums instead.
big_k105 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:35 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC