Conversion from Access 2000

J

John Spencer

I have a formula that worked correctly in Access 2000
namely
=IIf([Print Invoice Time Subform].[Form].[RecordsetClone].
[RecordCount]=0,0,[Print Invoice Time Subform].[Form]!
[Total Hours])

However, in Access 2003, I think it can't evaluate the
[RecordsetClone].[RecordCount]=0 part.

Can anyone help with a replacement statement.

Many thanks
 
P

prabha

Hi John,

I'm able to get results to work in the Northwind database sample using the
Orders form in Microsoft Access 2003. Example:

Dim str as String
str = IIF([Orders
Subform].[Form].[RecordsetClone].[RecordCount]=0,"Yes","No")
Msgbox str

Regards,

Eric Butts
Microsoft Access Support

"Microsoft Security Announcement: Have you installed the patch for
Microsoft Security Bulletin MS03-026? If not Microsoft strongly advises
you to review the information at the following link regarding Microsoft
Security Bulletin MS03-026
<http://www.microsoft.com/security/security_bulletins/ms03-026.asp> and/or
to visit Windows Update at <http://windowsupdate.microsoft.com/> to install
the patch. Running the SCAN program from the Windows Update site will help
to insure you are current with all security patches, not just MS03-026."


--------------------
| Content-Class: urn:content-classes:message
| From: "John Spencer" <[email protected]>
| Sender: "John Spencer" <[email protected]>
| Subject: Conversion from Access 2000
| Date: Mon, 1 Mar 2004 02:02:02 -0800
| Lines: 12
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcP/dD6Y5gnhOgBmTgytcUvsJWxiOA==
| Newsgroups: microsoft.public.access.conversion
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.access.conversion:39859
| NNTP-Posting-Host: tk2msftngxa08.phx.gbl 10.40.1.160
| X-Tomcat-NG: microsoft.public.access.conversion
|
| I have a formula that worked correctly in Access 2000
| namely
| =IIf([Print Invoice Time Subform].[Form].[RecordsetClone].
| [RecordCount]=0,0,[Print Invoice Time Subform].[Form]!
| [Total Hours])
|
| However, in Access 2003, I think it can't evaluate the
| [RecordsetClone].[RecordCount]=0 part.
|
| Can anyone help with a replacement statement.
|
| Many thanks
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top