Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Can’t Display Number of SUBFORM Items on MAIN Form... trying to use [RecordCount]
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 26 - 29 of 29 - Collapse all  -  Translate all to Translated (View all originals) < Older 
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
emily3...@gmail.com  
View profile  
 More options Jun 4 2009, 1:04 pm
Newsgroups: microsoft.public.access.forms, microsoft.public.access.gettingstarted
From: emily3...@gmail.com
Date: Thu, 4 Jun 2009 10:04:46 -0700 (PDT)
Local: Thurs, Jun 4 2009 1:04 pm
Subject: Re: Can’t Display Number of SUBFORM Items on MAIN Form... trying to use [RecordCount]
Hurray!!!    You are too cool... this fixed the problem with the error
message.   And.... it also lets me do a "Filter by Form" search!

One more minor question:   Do you know whether there is any way to
specify this textbox as a number field though?   When I try to filter
recipes by those with less than 5 ingredients (ie., <5), it also
returns anything more than 9 because it sorts the "1" in the numbers
10, 11, 12, etc. in front of 5.    I looked on the "Data" tab of the
textbook, but the only type field I saw was between plain text and
rich text.

Just out of curiosity (to help me understand in the future)... which
part of your query instructed to return ALL records of tblRecipes...
the sole asterisk (*)???

THANKS!!!

Jessi


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dirk Goldgar  
View profile  
 More options Jun 4 2009, 1:20 pm
Newsgroups: microsoft.public.access.forms, microsoft.public.access.gettingstarted
From: "Dirk Goldgar" <d...@NOdataSPAMgnostics.com.invalid>
Date: Thu, 4 Jun 2009 13:20:26 -0400
Local: Thurs, Jun 4 2009 1:20 pm
Subject: Re: Can’t Display Number of SUBFORM Items on MAIN Form... trying to use [RecordCount]
<emily[...]@gmail.com> wrote in message

news:d0445ecd-fc14-4ee8-a920-dadc37e723a6@q14g2000vbn.googlegroups.com...

> Hurray!!!    You are too cool... this fixed the problem with the error
> message.   And.... it also lets me do a "Filter by Form" search!

Excellent!

> One more minor question:   Do you know whether there is any way to
> specify this textbox as a number field though?   When I try to filter
> recipes by those with less than 5 ingredients (ie., <5), it also
> returns anything more than 9 because it sorts the "1" in the numbers
> 10, 11, 12, etc. in front of 5.    I looked on the "Data" tab of the
> textbook, but the only type field I saw was between plain text and
> rich text.

I'm guessing that's because the query engine doesn't know what type of value
will be returned by DCount(), so it uses the default type of Text.  Let's
try forcing the value to a Long, and see if that helps:

    SELECT
        CLng(DCount("*","tblRecipeIngredients",
                "fldRI_RecipeID=" & Nz(fldRecipeID,0)))
            AS IngredientCount,
        *
    FROM tblRecipes;

> Just out of curiosity (to help me understand in the future)... which
> part of your query instructed to return ALL records of tblRecipes...
> the sole asterisk (*)???

No, the asterisk tells it to return all fields of each record.  The
instruction to return all records is implied by the absence of a WHERE
clause, which would restrict the records returned.  No WHERE clause = return
all records.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
emily3...@gmail.com  
View profile  
 More options Jun 4 2009, 1:32 pm
Newsgroups: microsoft.public.access.forms, microsoft.public.access.gettingstarted
From: emily3...@gmail.com
Date: Thu, 4 Jun 2009 10:32:44 -0700 (PDT)
Local: Thurs, Jun 4 2009 1:32 pm
Subject: Re: Can’t Display Number of SUBFORM Items on MAIN Form... trying to use [RecordCount]

OK... forcing a conversion to a Long value worked!    I cannot thank
you enough... I really wanted to be able to save money by using fewer
ingredients, and I just couldn't get the filter to work (smiles).

Thanks SOOOO much!   I have learned a few things.

Jessi


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dirk Goldgar  
View profile  
 More options Jun 4 2009, 1:38 pm
Newsgroups: microsoft.public.access.forms, microsoft.public.access.gettingstarted
From: "Dirk Goldgar" <d...@NOdataSPAMgnostics.com.invalid>
Date: Thu, 4 Jun 2009 13:38:26 -0400
Local: Thurs, Jun 4 2009 1:38 pm
Subject: Re: Can’t Display Number of SUBFORM Items on MAIN Form... trying to use [RecordCount]
<emily[...]@gmail.com> wrote in message

news:b774cc86-c782-4f8f-8dce-a244f3c27f57@u10g2000vbd.googlegroups.com...

> OK... forcing a conversion to a Long value worked!    I cannot thank
> you enough... I really wanted to be able to save money by using fewer
> ingredients, and I just couldn't get the filter to work (smiles).

> Thanks SOOOO much!   I have learned a few things.

You're welcome.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages < Older 
« Back to Discussions « Newer topic     Older topic »