A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Is it an Ms Access bug?



 
 
Thread Tools Display Modes
  #1  
Old November 7th, 2009, 02:30 PM posted to microsoft.public.access.forms,microsoft.public.access.queries,microsoft.public.office.access.forms
Nick Dakoronias
external usenet poster
 
Posts: 2
Default Is it an Ms Access bug?

Hello Forum users,

Any advise on the following will be much appreciated:

I have a customer who has created a form in Access which contains two combo
boxes. Then 2nd combo must be updated according to the 1st

He implemented exactly this:
http://office.microsoft.com/en-us/ac...730581033.aspx

The problem is that the query which contains the [Forms]![Combo
Form]![Category] can't get the value from Category combo and it's asking for
a value with a requester.

Any idea, what is wrong?



Thanks in advance

Rgds, Nick.

  #2  
Old November 7th, 2009, 02:58 PM posted to microsoft.public.access.forms
Tom van Stiphout[_2_]
external usenet poster
 
Posts: 1,653
Default Is it an Ms Access bug?

On Sat, 7 Nov 2009 16:30:43 +0200, "Nick Dakoronias"
wrote:

The form may not be named "Combo Form" or the combobox may not be
named "Category".

-Tom.
Microsoft Access MVP


Hello Forum users,

Any advise on the following will be much appreciated:

I have a customer who has created a form in Access which contains two combo
boxes. Then 2nd combo must be updated according to the 1st

He implemented exactly this:
http://office.microsoft.com/en-us/ac...730581033.aspx

The problem is that the query which contains the [Forms]![Combo
Form]![Category] can't get the value from Category combo and it's asking for
a value with a requester.

Any idea, what is wrong?



Thanks in advance

Rgds, Nick.

  #3  
Old November 7th, 2009, 03:01 PM posted to microsoft.public.access.forms,microsoft.public.access.queries,microsoft.public.office.access.forms
Ken Snell
external usenet poster
 
Posts: 177
Default Is it an Ms Access bug?

Assuming that the form is named "Combo Form" and that the first combobox
control is named "Category", the code should work fine.

Normally, when running a SQL statement within a form this way, one doesn't
use the Forms![Combo Form]! syntax, and instead just uses the name of the
control:

WHERE (((Products.CategoryID)=
[Category]))

Is the second combobox on a subform, and the first combobox on a main form
that holds that subform?
--

Ken Snell
http://www.accessmvp.com/KDSnell/



"Nick Dakoronias" wrote in message
...
Hello Forum users,

Any advise on the following will be much appreciated:

I have a customer who has created a form in Access which contains two
combo boxes. Then 2nd combo must be updated according to the 1st

He implemented exactly this:
http://office.microsoft.com/en-us/ac...730581033.aspx

The problem is that the query which contains the [Forms]![Combo
Form]![Category] can't get the value from Category combo and it's asking
for a value with a requester.

Any idea, what is wrong?



Thanks in advance

Rgds, Nick.



  #4  
Old November 7th, 2009, 03:53 PM posted to microsoft.public.access.forms,microsoft.public.access.queries
Beetle
external usenet poster
 
Posts: 1,254
Default Is it an Ms Access bug?

First thing to check would be the spelling of the form
and combo box names. Is your form named Combo Form?
Is your first combo box named Category?
--
_________

Sean Bailey


"Nick Dakoronias" wrote:

Hello Forum users,

Any advise on the following will be much appreciated:

I have a customer who has created a form in Access which contains two combo
boxes. Then 2nd combo must be updated according to the 1st

He implemented exactly this:
http://office.microsoft.com/en-us/ac...730581033.aspx

The problem is that the query which contains the [Forms]![Combo
Form]![Category] can't get the value from Category combo and it's asking for
a value with a requester.

Any idea, what is wrong?



Thanks in advance

Rgds, Nick.

  #5  
Old November 7th, 2009, 11:34 PM posted to microsoft.public.access.forms,microsoft.public.access.queries,microsoft.public.office.access.forms
Tony Toews [MVP]
external usenet poster
 
Posts: 3,776
Default Is it an Ms Access bug?

"Nick Dakoronias" wrote:

The problem is that the query which contains the [Forms]![Combo
Form]![Category] can't get the value from Category combo and it's asking for
a value with a requester.


Open the forms. Open the query in design view and click on the box
containing the above field and clear it. Then click on the Build
button on the toolbar (looks like a wand with some stars), make the
box bigger by dragging on the lower right corner, then expand the
Loaded Forms item on the left hand side. Click on the form and you
will see a list of the controls in the middle box. Select the control
and click on Paste. Then click Ok.

Now the correct form and control name will be in the criteria field in
the query. Assuming this is a typo of some sort of course.

Tony
--
Tony Toews, Microsoft Access MVP
Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
For a free, convenient utility to keep your users FEs and other files
updated see http://www.autofeupdater.com/
Granite Fleet Manager http://www.granitefleet.com/
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:01 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.