iconAll times are GMT. The time now is 02:16. | Welcome to aberdeen-music! Please register for free in order to access all areas of the web site and to post on our forums.


» Forums » Other Forums » General Discussion » Programmers with MS ACCESS HELP ME !!

General Discussion Forums for all discussion about everything else non-music or scene related.

Reply
 
LinkBack Thread Tools
Old 23-02-2006, 11:47   #1 (permalink)

 
Aaron_Robertson's Avatar

Aaron_Robertson is on a distinguished road with 10 reputation points.

Profile
Male
location: Aberdeen
joined: Sep 2003
posts: 373
bands: Avoid The Morning
talents: Guitar / Bass / Vocals

Send a message via MSN to Aaron_Robertson
Default Programmers with MS ACCESS HELP ME !!

Hello,

I want to generate a report in Access That is defined by Job Number.. And Head Type.. ok so the Job Number is already defined when the user IE Press's "0001" and it displays the information per head type..

I only want it to display like this

"HeadA" "HeadB" "HeadC"

So i want access to work like this..

In "0001" If "HeadA" Is present then display "HeadA" If not Then look for "HeadB" if "HeadB" Is present then display "HeadB" and If "HeadA" or "HeadB" is not present the display "HeadC" .

How do i go about showing this in a report
Thanks IN Advance
Aaron Robertson

I hope my Wee diagram below helps at all...
------------------
¦HEAD TYPE REPORT ¦
--------------------------------------------
¦Job No¦ HEAD TYPE¦-------------------------
--------------------------------------------
"0001" HEADA
"0002" HEADC
"0003" HEADA
"0004" HEADB



I know im a geek
Aaron_Robertson is offline   Reply With Quote
Old 23-02-2006, 11:57   #2 (permalink)

 
RicoAUBL's Avatar

RicoAUBL is on a distinguished road with 10 reputation points.

Profile
Male
location: Hot Mangu HQ
joined: Aug 2003
posts: 1,260
bands: Dj Monkeydoo, Immortal Wombat
talents: things that go BOOM!

Send a message via MSN to RicoAUBL
Default

have you tried turning it off and on again ?


RicoAUBL is offline   Reply With Quote
Old 23-02-2006, 11:58   #3 (permalink)

 
Lester Burnham's Avatar

Lester Burnham is an honor to be around with 129 reputation points.Lester Burnham is an honor to be around with 129 reputation points.Lester Burnham is an honor to be around with 129 reputation points.Lester Burnham is an honor to be around with 129 reputation points.Lester Burnham is an honor to be around with 129 reputation points.Lester Burnham is an honor to be around with 129 reputation points.

Profile
Female
location: The unseen pleasure of Holburn
joined: Aug 2003
posts: 5,534
bands: Murder you
talents: Machines and Romantic Screams

Send a message via MSN to Lester Burnham
Default

Is it definately plugged in?

Lester Burnham is offline   Reply With Quote
Old 23-02-2006, 12:18   #4 (permalink)

 
Chris's Avatar

1 Highscore

Profile
Male
location: Near the bar
joined: Aug 2003
posts: 5,524
bands: 1864 In Art
talents: Guitar

Send a message via ICQ to Chris Send a message via AIM to Chris Send a message via MSN to Chris Send a message via Yahoo to Chris
Default

Real geeks don't use Access.
__________________
When did mediocrity and banality become a good image for your children? ... Fuck that! I want my rock stars dead! I want them to fucking play with one hand and put a gun in their other fucking hand and go "I hope you enjoy the show!" *Bang!* Yes! Yes! Play from your fucking heart!
~ Bill Hicks


Chris is offline   Reply With Quote
Old 23-02-2006, 13:02   #5 (permalink)


doom donkey is on a distinguished road with 10 reputation points.

Profile
joined: Mar 2005
posts: 18

Default

Ok, I was a wee bit bored a work, if you open the report in design view and put something like the following as the control source for the HEAD TYPE field it should work (maybe, I didn't bother testing it as I'm not that bored)

=IIf([HEADA] Is Not Null,[HEADA],(IIf([HEADB] Is Not Null,[HEADB],[HEADC])))

Hope that helps
doom donkey is offline   Reply With Quote
Old 23-02-2006, 13:40   #6 (permalink)

 
Aaron_Robertson's Avatar

Aaron_Robertson is on a distinguished road with 10 reputation points.

Profile
Male
location: Aberdeen
joined: Sep 2003
posts: 373
bands: Avoid The Morning
talents: Guitar / Bass / Vocals

Send a message via MSN to Aaron_Robertson
Default

Thanks!

That code sounds right but how do i get it to choose the "Head Type" Column from the table if you know what i mean like

Head Type = Iff([Heada] Is Not Null,[Heada],(IIf([Headb] Is Not Null,[headb],[headc])))

or

Iff([Heada] Is Not Null,[Heada],(IIf([Headb] Is Not Null,[headb],[headc]))) - I want to run this command for a spefic column..

Sorrry if im confusing u i am a little confused myself
Aaron_Robertson is offline   Reply With Quote
Old 23-02-2006, 14:30   #7 (permalink)


doom donkey is on a distinguished road with 10 reputation points.

Profile
joined: Mar 2005
posts: 18

Default

Quote:
Originally Posted by Aaron_Robertson
Thanks!

That code sounds right but how do i get it to choose the "Head Type" Column from the table if you know what i mean like

Head Type = Iff([Heada] Is Not Null,[Heada],(IIf([Headb] Is Not Null,[headb],[headc])))

or

Iff([Heada] Is Not Null,[Heada],(IIf([Headb] Is Not Null,[headb],[headc]))) - I want to run this command for a spefic column..

Sorrry if im confusing u i am a little confused myself
Ok, had another play and got it to work using the following,

=IIf(Not IsMissing([Heada]),[Heada],IIf(Not IsMissing([Headb]),[Headb],[Headc]))

I'm assuming here that heada, headb etc are fields in a table.

If so you create a report (I used the wizard) containing Job number and heada, then open the report in design view, right click on heada in the detail section and select properties, paste the above code in the "control source field" on the data tab, rename the text box on the other tab so it's not heada (gets confused between the text box and field name) and it should all be cool.
doom donkey is offline   Reply With Quote
Reply

Bookmarks

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 On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is a record deal all its cracked up to be? Hogisbald Music Discussion 29 23-03-2006 17:16
Firefox prone to hackers as much as Internet Explorer Snakebite General Discussion 71 01-08-2005 00:53
Programmers.. gilly General Discussion 24 03-03-2005 12:39


Inactive Reminders By Icora Web Design