|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
I have opened a connetion to a databse in the shared folder but I can't be able to open a recordset of a table of this connection it says that there is a syntax failure can anyone please help me in opening a recordset of an ADODB connection.
my connection is the following please help me. Set cnn = New ADODB.Connection cnn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & "\\D-server\Persönlicher Ordner\CABANNA_be.mdb" & ";" cnn.Open , "Admin", "" MsgBox "cnn state: " & GetState(cnn.State) ' Open User table Set rst = New ADODB.Recordset strSQLUser = "User" rst.Open strSQLUser, cnn, adOpenKeyset, adLockOptimistic, adCmdTable This is showing a message that the connection state is opend but it can'T be able to open the record set what should Ihave to do. Thanks a lot in advance. have fun. Kiran. |
|
#2
|
|||
|
|||
|
try
strSQLUser = "[User]"
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#3
|
|||
|
|||
|
now my reocrd set is opening but can you please give me an example to how can I INSERT a record selected from my remote database and into Local databse.
I found how to update an existing record but not how to insert a new record which is selected from remote databse and insert into the local databse. I feel lucky if I can get this answer. Thanks in advance. |
|
#4
|
|||
|
|||
|
For starters,
http://msdn.microsoft.com/library/en-us/ado270/htm/mdmthaddnew.asp |
|
#5
|
|||
|
|||
|
search the forum for a sample DB called
VBAUnbound.zip It is a sample DB using DAO and ADO recordsets S- |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Open a recordset from vba |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|