473,503 Members | 1,670 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Empty recordset when accessing recordset

Ik moet diverse Access95 databases overzetten naar een MySQL database
met behulp van Visual Basic 6.
Dat gaat goed, totdat ik de inhoud van een memo-veld over moet zetten
naar een string.
De database is geschreven in MS Access 95 en bevat 2 tabellen: afdeling
en opname.
Uit de tabel opname moet ik de gegevens over zetten.
Ik gebruik hiervoor een ADODB verbinding die op de volgende manier is
opgezet:

CString = "Provider=MSDASQL.1;Persist Security Info=False;"
CString = CString & "Extended Properties=;DSN=MS Access Database;"
CString = CString & "DBQ=" & DatabaseNaam & ";"
CString = CString & "DefaultDir=" & DefaultDir & ";"
CString = CString & "DriverId=281;FIL=MS
Access;MaxBufferSize=2048;PageTimeout=25;UID=admin ;"
CString = CString & "Initial Catalog=" & InitialCatalog

Set docMDB = New ADODB.Connection
docMDB.ConnectionString = CString
docMDB.ConnectionTimeout = 100
docMDB.Mode = adModeReadWrite
docMDB.Open

Via deze verbinding maak ik een recordset aan, maar zodra ik door deze
recordset heen wil, is hij Null geworden, terwijl hij daarvoor gevuld
was.
SQL = "SELECT * FROM opname"
Set rs2 = docMDB.Execute(SQL)
strOpmOpname = CStr(rs2("opm"))

rs2("opm") is eerst gevuld, maar na enkele seconden is hij weer leeg.

Wie kan mij helpen om deze gevuld te houden?

Jan 11 '07 #1
0 1973

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
5307
by: Eli Sidwell | last post by:
Trying to return a Recordset to an ASP and the Recordset is empty. The StorredProc works in the query analyzer and it even works from a quick VB app that I wrote to test it. The storedproc that...
7
8489
by: Jean | last post by:
Hello, I have a form that performs a search, according to criteria that a user enters into the text boxes. When the user clicks on „Search", a SQL string (say strSQL) is built up with the...
5
2197
by: Tom van Stiphout | last post by:
Hi all, I'm seeing a weird problem I'm thinking might be due to corruption. What do you think? Here is the relevant code, which is in a standard module, called from subfrmDetail's...
30
35825
by: S. van Beek | last post by:
Dear reader A record set can be empty because the condition in the query delivers no records. Is there a VBA code to check the status of a record set, record set empty
1
1089
by: nita | last post by:
Hi, I am trying to Accessing an ADO Recordset or Record from ADO.NET. myDA.Fill(myDS, adoRS, "Employee") the above statement generates the build error -...
0
24848
ADezii
by: ADezii | last post by:
When you create a Recordset, you may want to know immediately whether that Recordset actually contains any Rows. There are Recordsets that don't return any Rows and you may need to take different...
2
2338
by: hackmagic | last post by:
Hi, i have a form that normally has a Recordset containing only one record bound to it. i have replaced the navigation buttons with my own and the 'New Record' button assigns an empty Recordset...
4
2575
by: ipez75 | last post by:
Hello everyone, I have a web application written in asp 6.0, my problem is that I execute a sql server store procedure and I get an empty recordset, while executing the same sp on query anlyzer I...
1
2914
by: Shiller | last post by:
Experts, I keep getting the following error message when accessing a web page: ADODB.Recordset (0x800A0CC1) Item cannot be found in the collection corresponding to the requested name or...
0
7201
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7083
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7278
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7456
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3153
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1510
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
734
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
379
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.