Home News Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | Access Help (again!)


You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > General IT Discussion

Access Help (again!)
Reply
 
Thread Tools
Old 16-08-2007, 10:02   #1
Damien
Cable Forum Team
 
Damien's Avatar
 
Join Date: Mar 2004
Age: 26
Posts: 19,665
Damien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered stars
Damien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered stars
Access Help (again!)

Hi having another problem with access.

Basically,

I have 3 levels of data:

Company
Department
Contacts

You choose the company first, then the department, then the contacts. I did this bu having a sub form of contacts embedded in department and department embedded in company.

Now, this does work, it only will display the departments that match the company and the contacts that much the department.

The problem is that I wanted a drop down box to select the department and the same in contacts. Access has this feature but when I use it, it will display every possible value and not simply the ones that are in that company or department. When you select the ones that are not part of the company it will not show anything but its still a pretty bad bug.

Any ideas on how to get around it?
Damien is offline   Reply With Quote
Advertisement
Old 16-08-2007, 10:06   #2
Raistlin
Been around a while ...
 
Raistlin's Avatar
 
Join Date: Feb 2004
Location: There's no place like 127.0.0.1
Services: Depends on the person and the price they're offering
Posts: 12,365
Raistlin has disabled reputation
Re: Access Help (again!)

Ages since I've done this but I think you need to set up your drop-downs so that they get their results from a query, rather than from a table/list.

Once you've done this you can requery them depending on the value of the others.

It's a bit difficult to explain really, and a bit dificcult to understand exactly what you've got and how it's working, just from a post in a forum.

Take another look at the way the data/options are being picked up in the drop-downs, and see if you can get the to work from queries. I think that should sort it
__________________
Citroen Xsara Owners Club
Raistlin is offline   Reply With Quote
Old 16-08-2007, 10:08   #3
Damien
Cable Forum Team
 
Damien's Avatar
 
Join Date: Mar 2004
Age: 26
Posts: 19,665
Damien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered stars
Damien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered stars
Re: Access Help (again!)

Mmm, I was thinking a Query as well. I'll try that
Damien is offline   Reply With Quote
Old 16-08-2007, 10:09   #4
Raistlin
Been around a while ...
 
Raistlin's Avatar
 
Join Date: Feb 2004
Location: There's no place like 127.0.0.1
Services: Depends on the person and the price they're offering
Posts: 12,365
Raistlin has disabled reputation
Re: Access Help (again!)

K, if you get stuck give me a shout. As I've said before, I'm more than happy to take a look if you think a second pair of eyes will help
__________________
Citroen Xsara Owners Club
Raistlin is offline   Reply With Quote
Old 16-08-2007, 10:16   #5
Damien
Cable Forum Team
 
Damien's Avatar
 
Join Date: Mar 2004
Age: 26
Posts: 19,665
Damien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered stars
Damien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered stars
Re: Access Help (again!)

Cool, I may do that. I hope MySQL isnt this annoying. The query does work in that it will only allow the person to view the values that depend on the department. But I cant search the records with that drop down box! :S I will see
Damien is offline   Reply With Quote
Old 16-08-2007, 10:18   #6
gazzae
cf.mega poster
spankthemonkey Champion
 
gazzae's Avatar
 
Join Date: Jun 2003
Location: Belfast
Age: 33
Posts: 4,594
gazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronze
gazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronze
Re: Access Help (again!)

Create a query that contains the data you need.

So you would have fields say Company | Department

In the critera for the Company field enter iif(isnull([Forms]![YOUR FORM NAME]![field name of company drop down],[Company],[Forms]![YOUR FORM NAME]![field name of company drop down])

then on the form select the department drop down and enter the table name as the row source.
gazzae is offline   Reply With Quote
Old 16-08-2007, 10:22   #7
Damien
Cable Forum Team
 
Damien's Avatar
 
Join Date: Mar 2004
Age: 26
Posts: 19,665
Damien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered stars
Damien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered stars
Re: Access Help (again!)

I would then need to requery everytime something is updated as well right?
Damien is offline   Reply With Quote
Old 16-08-2007, 10:22   #8
Raistlin
Been around a while ...
 
Raistlin's Avatar
 
Join Date: Feb 2004
Location: There's no place like 127.0.0.1
Services: Depends on the person and the price they're offering
Posts: 12,365
Raistlin has disabled reputation
Re: Access Help (again!)

I think that if the field is based on a query it should automatically requery it each time the form/field is refreshed.
__________________
Citroen Xsara Owners Club
Raistlin is offline   Reply With Quote
Old 16-08-2007, 10:26   #9
gazzae
cf.mega poster
spankthemonkey Champion
 
gazzae's Avatar
 
Join Date: Jun 2003
Location: Belfast
Age: 33
Posts: 4,594
gazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronze
gazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronze
Re: Access Help (again!)

Quote:
Originally Posted by Raistlin View Post
I think that if the field is based on a query it should automatically requery it each time the form/field is refreshed.
Yeah it will.

---------- Post added at 11:26 ---------- Previous post was at 11:24 ----------

Was missing a )

iif(isnull([Forms]![YOUR FORM NAME]![field name of company drop down]),[Company],[Forms]![YOUR FORM NAME]![field name of company drop down])
gazzae is offline   Reply With Quote
Old 16-08-2007, 10:34   #10
Damien
Cable Forum Team
 
Damien's Avatar
 
Join Date: Mar 2004
Age: 26
Posts: 19,665
Damien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered stars
Damien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered stars
Re: Access Help (again!)

it tells me to enter a parameter value in? :S
Damien is offline   Reply With Quote
Old 16-08-2007, 10:38   #11
gazzae
cf.mega poster
spankthemonkey Champion
 
gazzae's Avatar
 
Join Date: Jun 2003
Location: Belfast
Age: 33
Posts: 4,594
gazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronze
gazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronze
Re: Access Help (again!)

Quote:
Originally Posted by Damien View Post
it tells me to enter a parameter value in? :S
If you open the query directly it will

Does it work when you use the dropdowns?
gazzae is offline   Reply With Quote
Old 16-08-2007, 10:40   #12
Damien
Cable Forum Team
 
Damien's Avatar
 
Join Date: Mar 2004
Age: 26
Posts: 19,665
Damien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered stars
Damien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered stars
Re: Access Help (again!)

nope! :S That's what I was doing. I'll double check the form names and such
Damien is offline   Reply With Quote
Old 16-08-2007, 10:41   #13
gazzae
cf.mega poster
spankthemonkey Champion
 
gazzae's Avatar
 
Join Date: Jun 2003
Location: Belfast
Age: 33
Posts: 4,594
gazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronze
gazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronze
Re: Access Help (again!)

If your still having probs get rid of the isnull stuff and just put in as the criteria..

[Forms]![YOUR FORM NAME]![field name of company drop down]
gazzae is offline   Reply With Quote
Old 16-08-2007, 10:43   #14
Damien
Cable Forum Team
 
Damien's Avatar
 
Join Date: Mar 2004
Age: 26
Posts: 19,665
Damien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered stars
Damien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered starsDamien is seeing silvered stars
Re: Access Help (again!)

IIf(IsNull([Forms]![Contacts]![Combo28]),[Department],[Forms]![Contacts]![Contacts])

I am doing Department | Contacts first. Remember that the contacts form is a subfrom in the department form.
Damien is offline   Reply With Quote
Old 16-08-2007, 10:47   #15
gazzae
cf.mega poster
spankthemonkey Champion
 
gazzae's Avatar
 
Join Date: Jun 2003
Location: Belfast
Age: 33
Posts: 4,594
gazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronze
gazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronze
Re: Access Help (again!)

Quote:
Originally Posted by Damien View Post
IIf(IsNull([Forms]![Contacts]![Combo28]),[Department],[Forms]![Contacts]![Contacts])

I am doing Department | Contacts first. Remember that the contacts form is a subfrom in the department form.

It should be..

IIf(IsNull([Forms]![Contacts]![Combo28]),[Department],[Forms]![Contacts]![Combo28])


try just putting in..

[Forms]![Contacts]![Combo28]
gazzae is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Google Search




All times are GMT. The time now is 01:33.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Copyright © 2003 - 2012, Cable Forum.
(server9.cableforum.co.uk)

SEO by vBSEO 3.3.2