473,382 Members | 1,302 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

How do I know if a recordset has been filled?

I use Access 2003 and WinXP.

I have a recordset declared:

Dim regValuation As Recordset

Later, I may, or may not, fill it (for a certain csql string) like
this:

Set regValuation = CurrentDb.OpenRecordset(csql)

How can I test if the recordset has been filled or not?

I have tried, unsuccessfully:

vartype()
regValuation.EOF and .BOF.

Regards,

Jan Nordgreen

Nov 13 '05 #1
2 1267

"damezumari" <ja**********@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
I use Access 2003 and WinXP.

I have a recordset declared:

Dim regValuation As Recordset

Later, I may, or may not, fill it (for a certain csql string) like
this:

Set regValuation = CurrentDb.OpenRecordset(csql)

How can I test if the recordset has been filled or not?

I have tried, unsuccessfully:

vartype()
regValuation.EOF and .BOF.

Regards,

Jan Nordgreen


Something like this:

If regValuation Is Nothing Then

'Code if not yet assigned

End If

Regards,

Wayne Phillips
http://www.everythingaccess.com/forums
Nov 13 '05 #2
Thanks!

It worked like a dream!

Regards,

Jan Nordgreen
http://simpler-solutions.net/pmachin...thinkagain.php

Nov 13 '05 #3

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

Similar topics

0
by: CSDunn | last post by:
Hello, In Access ADP's that connect to SQL Server databases, any time I have a situation where I have a combo box in a main form that looks up a record in a subform, the subform record source has...
6
by: lenny | last post by:
Hi, I've been trying to use a Sub or Function in VBA to connect to a database, make a query and return the recordset that results from the query. The connection to the database and the query...
13
by: Jan | last post by:
Hi I have a database that I use to keep track of the sales promotions that we send to companies. I normally send a mailing based on a subset of the companies in the database (found using the...
1
by: Ray Holtz | last post by:
I have a database in Access 2003 (Access2000 file format). There are two tables that are being used: Employees and Items. It is linked by the Employee field so that one employee can have many...
36
by: kjvt | last post by:
Based on a prior posting, I've written a function to convert a recordset to a dataview. The first call to the function for a given recordset works perfectly, but the second call always returns a...
0
by: Amsterdammer | last post by:
I have to transfer various Access 95 databases to a MySQL database with the help of Visual Basic 6. This works until I have to transfer the content of a memo field to a string. I use an ADODB...
3
by: jasperz01 | last post by:
Hi, I have a DAO.Recordset wich is filled with data from a query in Access. How can I know how many records there are in this recordset? so far I have this: Dim strSQL As String ...
6
by: Harvey Triana | last post by:
Hello - I am migrating a large COM system solution to ASP.NET To transfer data from Web to client this application uses streams of ADO recordset, example: Clasic ASP (VB Script): <% Dim Rs...
4
by: wassimdaccache | last post by:
Dear experts, I would like to print a record set or fill all data on it on a specific report that I made Suppose that my record set is RS, I do have RS! and RS! Report Name : Customer...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.