Access Multiple Vertical Lookup Query?

May 23, 2012

I work for a Local Council and trying to streamline the DA process a bit by using Access. I have two tables.

tbl_Conditions which has ConditionID(PKey) and ConditionDescription Fields.

tbl_DA has the field DA (PKey) followed by numerous conditions for simplification let's assume I have only five conditions each with there own field. SC363, SC449, SC106, S105, SC32.

For each DA in tbl_DA I go through and if condition SC363 applies I input SC363 if it does not apply I input NO. This is repeated for other conditions.

Everything above this point I have working like a charm. However from here on in I am seriously struggling been stuck for two days with no success!!

I would then like to create a new table ready for merging into word. The table would be the following

tbl_DAMerge would have fields DA (Pkey), SC1ConditionDescription, SC2ConditionDescription....., SC5ConditionDescription.

The condition descriptions would be coming from tbl_Conditions the description would only be inputted if the condition applied otherwise it would be left blank.

I have tried Dlookup, and update queries with multiple joins but it always comes back doing something random.

View Replies


ADVERTISEMENT

Forms :: How To Create A Query On Lookup Of Multiple Values

Oct 19, 2013

I wanted to create a form where you can select multiple values from the table "years" and on a button it would open a query displaying all the records in "students" in those years selected.

View 3 Replies View Related

Some Vertical Decorations In Access Report

Nov 29, 2004

How are you lot doing.

Anyways this at first seemed not to be too hard however has become a bit of an issue.

I would like to have a vertical block with the color green in my report. This block should be
as long as the page itself, however I cannot get it to cover the whole page as it will stop when
the report runs out of data. Does anyone know a 'trick' that would force this box to be as big as
one page, without making the details section this large by default (I dont want only 1 record on a
page).

Cheers,

Thomas

View 1 Replies View Related

Vertical Text Direction/Orientation In CrossTab Query

Jan 7, 2007

I am fairly new to developing with Access.

I would really value some advice on changing text direction in crosstab query column labels.

I have just created a crosstab query to function as a training matrix. It has rather long column labels (there are good practical reasons for this), which makes the query very wide and difficult to print one one page.

Is there a way to change the text direction of the column headings so they are printed running up the page?

I know how to change text direction in Word or Excel, but not Access.

At the moment I am copying the query results into Excel and manipulating the text direction in Excel, but this is rather cumbersome.

Thanks in anticipation of any help. :cool:

View 3 Replies View Related

Help With Multiple Lookup Lists

Nov 9, 2004

Apologies - i'm a "rookie" at Access - but i have searched for a while now on the site for the answer to my question... I'm sure there is a simple solution somwhere here but i cant find it!

I am putting togther an venue database - with all the usual fields: Name, Address, Capacity etc... of which i have set up YES/NO, Free Text and Number fields. No problem!

I have also set up various lookup lists which work fine, apart form the venue "Suitability" lookup list.

The choices are:

Corporate
Private
Drinks Reception
Dry Hire
Music Event
Conference

Now, some venues may be suitable for SEVERAL of these uses - so how do i select multiple uses from this list as opposed to just one?

Many thanks in advance for your help - im learning fast! :rolleyes:

View 2 Replies View Related

Lookup Multiple Figures Within A Column?

Feb 6, 2007

Hi

Is there a way you could look up multiple number in a query were the column will be a series of numbers/calculations?

E.g.

I would want to look for 13001,13002,13003, in a column where there would be calculation such

13001 * 246
13001 * 269
13002 849
etc
etc

Any help would be much appreciated?

Thanks

Andrew

View 1 Replies View Related

Lookup Based On Multiple Boxes

Oct 26, 2005

I apologize if this has been adressed. I searched but did not find it. Partially I think because it won't let me use the word 'two' in the search. That's kinda important in this case.

I know how to make a lookup combo box. I used the wizard and copied and pasted the code, actually. What I need is the code to base the lookup from two combos.

For example, the records in my table contain information about different districts on certain dates.

I'd like to lookup the record that matches both the Report Date combo and the District combo.

Thanks in advance.

View 12 Replies View Related

Queries :: Lookup Using Multiple Fields

Jun 5, 2013

I have a query that based on certain codes in a record does multiple joins to pull in other codes... I want the query (based on these pulled in codes) to do a lookup in another table to extract 1 field that has a description...

Can I do this in one query??? Do I need to do a Make Table to first pull in the codes and then do a second query with a DLookup based on those fields???

View 3 Replies View Related

Tables :: Multiple Fields From Lookup

Oct 21, 2012

I have a member table and donation table. For a donation, I'd like to lookup the last and first names from the member table. I set the lookup for the last name and can see bothe first and last names in the drop down list. When I pick, I get the last name in the DonationT but how to I pick up the first name? That is, how do I fill DonorFirstName in DonationT from the FirstName field in the MemberT?

View 3 Replies View Related

Multiple Lookup Values Into One Table Field

Apr 4, 2006

Hi,

Is there anyway to have a single field in a table which is populated via the use of a lookup onto another table, but allowing multiple value selection out of the lookup table and populating those into the field...

For example

Table 1 is customer details
Table 1 field 3 = areas of interest

Table 1 field 3 is populated via a lookup into Table 2 interests

Table 2 has 4 records

Sport
Household
Motoring
Family

I want to be able to select 1 or more of the Table 2 values and populate them into Table 1 Field 3....

Help my head hurts....

View 3 Replies View Related

Modules & VBA :: Lookup Function To Use In Multiple Queries

Jul 24, 2015

I have a database with various tables containing information about students, timetabling, assignment submission dates and multiple tables with grades for various assessments. All grades are held as percentages.

In a large number of different queries / reports I want to output the grade as an item from verbose scale with 17 points (excellent first, high first etc.). I've set up a table called 17pointscale which contains fields called 17pointscale (with the verbose names), lowerlimit (number) and upperlimit (number).

I have a query in SQL (which works) to take the percentage grade from one of my grade tables AssessedWorkGrades.Grade and return the text on the 17 point scale.

SELECT AssessedWorkGrades.Grade, [17PointScale].[17PointScale]
FROM AssessedWorkGrades LEFT JOIN 17PointScale ON ([AssessedWorkGrades].[Grade]
>= [17PointScale].[LowerLimit]) AND ([AssessedWorkGrades].[Grade] <= [17PointScale].[UpperLimit]);

Is there any way of converting the SQL to a custom vba function which would enable me to use this as a lookup in a large number of queries.

I think that it should be possible to set up a function called ScaleGrade and in any query Expression: ScaleGrade(XXX) will take XXX and return the 17 point scale.

I think that AssessedWorkGrades.Grade needs to be replaced by a variable that is inputted on use of the function but am not sure how to accomplish this.

View 1 Replies View Related

Queries :: Lookup Multiple Values And Use Both Separately

Jun 24, 2014

I have two tables one with all the personnel (tblPersonnel) I'm tracking, another with different report names (tblReports).

For each report, there are different years that it's valid for.

On the reports table, I have three columns, ReportID, Report_Title, and Years_Valid

I'm using a lookup on the personnel table that stores the report name as the ReportID.

What I want to do is in a query use the Years_Valid column to automatically generate review dates bases on dates already in the database.

View 6 Replies View Related

Forms :: Multiple Fields Completed From One Lookup Field

Jan 2, 2014

We have a form, which has a field linked to a "Recipients" table through a lookup. The field is bound to the recipient's name, but the lookup displays additional columns for user to identify the correct recipient in the case of duplicate names.

The "Payment" table's Recipient field only displays the recipient's name. So where duplicates occur, it's impossible to know which recipient is the correct one associated to a payment.

I would like to add an additional field to the "Payment" table called "RecipientIDNo". I need a way to auto-populate this field, based on the already existing Recipient field. Is this possible?

Why I just don't modify the recipient field on our payment form to be bound to the user ID number, there are two reasons.

(1) The field is linked to too many other reports and queries at this point. I believe it could cause an enormous amount of work to modify.
(2) the form likes to display whatever it is bound to. There may be a workaround for this, but I'm not aware of it and don't want the form displaying a number instead of a recipient name.

View 7 Replies View Related

Database Update Of Multiple Fields Based In Lookup

Oct 28, 2014

I have two tables, one table (1) hold three fields, one of those fields is the master key (index). The other table (2) has a field which I want to lookup from table 1, that part is working. In the combo box I get all three fields displayed as I make my selection. I want to copy the other two fields as text at the time the lookup index is selected. I do not what the fields to automatically update each time the table is displayed. I have looked at update macros, I've looked at VBA.

View 1 Replies View Related

Lookup Value On Multiple Items In A Comma Separated Field?

Nov 16, 2013

I have a table like this below:

ProductID ProductName
1 AAA
2 BBB
3 CCC

I have a field in another table, like this:

RelatedProducts
AAA,CCC
AAA
AAA,BBB,CCC

I need a field in one of my queries that will return the related products field data like this:

RelatedProducts
1,3
1
1,2,3

View 8 Replies View Related

Forms :: Using A Lookup Wizard To Select Multiple Entries From A Table

Jul 14, 2015

I am trying to create a lookup wizard to record the number of people who attend a regular event. I have a table recording the names, surnames and DOB of registered members and a number of other tables for regular events we hold. Previously people have been manually adding the names of attendees and of course there have been inconsistencies in the data. I want them to look up the names from the table of registered members. I have been using the lookup wizard, but it is only displaying the first name in a string. I need it to display id, first name, surname and DOB in a table. I also want to be able to type in the first letter and then pick from the list.

View 5 Replies View Related

Queries :: Multiple Table Database - Lookup For Some Fields And Display Records

Mar 23, 2015

My colleague has a multiple table database and uses lookups for some fields. The simple query was to extract 3 fields and display all records from those fields. The result of the query was that the selected fields were listed first followed by all other fields which are usually not displayed.

View 5 Replies View Related

Obtaining Multiple Report Parameters Via Menu Form Lookup Control

Feb 11, 2015

In our Student Administration database, we have a Student Evaluation Report which prints a 1 page per student report in memo like format. The instructor had previously input rating numbers (4=Best, 1=Worst) for 9 categories for each student via a database form into the Evaluations Table.

Two other elements of the rating are an Attendance based on number of days absent and a Grade Point Average (GPA) calculated from the student's test scores. The instructor then prints and reviews the report with each student.

There is an Evaluations Parameter table which has the following fields:

Field
Description

ID
The autonum key field.

Class
eg., 2015-1

Evaluation Number
A single digit (eg., 1, 2). There may be more than 1 evaluation for each class.

EffectiveDate
The "as of" date of the evaluation.

There are then several other tables that are input to a query that will be the record source for the report:

Table
Purpose/Data

Students
Student Name, Class

Absence
Has a record for each student's absence with date and a 1 or .5 indicating a whole or half day absent.

Test Grades
Has a record with each student's test results with date and score.

Evaluations
Holds the rating score for each of the 9 rating categories.

The Student Evaluation report is launched from an unbound Reports menu form via a button. On the Reports menu form I wish to have controls for the user to select which evaluation to report on. The Absence and Test Grade information needs to include records that are <= the EffectiveDate in the Evaluation Parameter table. The Evaluations records need to match the Class and Evaluation Number in the Evaluations Parameter table.

I would like the user to be able to select the Evaluation Parameter via a combo box vs. specifying the Class, Evaluation Number and Effective Date separately and then have the query record source for the report use those two fields as criteria. But my limited understanding of the Combo box indicates that only 1 field from the lookup query of the Evaluations Parameter table can be stored in the control whereas I need 3 (Class Evaluation Number and EffectiveDate).

How the user can select the desired Evaluation Parameter record on the Reports menu form and use the 3 fields from the selected record as criteria in the report's record source query.

View 10 Replies View Related

Access Multiple Tables Query

Oct 6, 2006

this is a tricky one.
Basically I have 3 tables

country
state
city

relationship:

1:m -> country:state
1:m -> state:city

I want to get all the country, state and cities. SELECT * FROM country, state, city

thats fine. But I only want to show unique values, in other words, just want to show unique country values, not duplicates. How can I do this?

View 1 Replies View Related

Vertical To Horizontal

Apr 27, 2007

Here is how my table is set up:

System1 Subsystem1
System1 Subsystem2
System1 Subsystem3

I need a query that puts the data into one record, different cells:

System1 Subsystem1 Subsystem2 Subsystem3

Can this be done?
Thanks,
MJ

View 14 Replies View Related

Vertical Lines

Nov 7, 2005

How would I go about getting vertical lines as column seperators down the entire page. The problem I run into is every time the row size changes there's a break in the column dividers. Someone suggested using a function in the On Print event for the report, but there is no OnPrint field in the event tab of the reports properties. If anyone ever did anything like this before, please let me know.

View 5 Replies View Related

Vertical Tabs?

Dec 6, 2007

Is it possible to set tabs along the right hand margin of a form going vertical instead of the default horizontal from the top of the form?

View 5 Replies View Related

Vertical Lables

Feb 11, 2008

Due to limited space in my Report Heading, I am trying to vertically label columns. I figured out in the Properties section of the label that I can turn on Vertical Label. However, when I view it on the report, the label, which is now vertical is turned to the left vs the right. How do I flip it? In addition, is there a way to rotate the text to a 45% angle.

Thank you.

GeneS

View 1 Replies View Related

Multiple Selects In An Access Passthru Query

Sep 7, 2005

Hi,

I'm trying to run a pass thru query into a sybase server from Access. The query contains multiple selects which Access doesn't appear to like very much. The query works fine when run in Sybase.

Is there any way of circumventing this problem?

I could split the three selects into three seperate queries to view the individual results but the third set is dependant on the previous two sets and so therefore is difficult (impossible?) to seperate out as a third individual query.

Thanks for any suggestions?

Select
s.id_prtf Portfolio_ID,
s.id_imnt Instrument_ID,
s.id_imnt_swap Instrument_Swap_ID,
s.id_ccy_std Currency,
s.am_posn Position,
s.am_pnl_eqty PNL_Eqty

into #temptable1
from
SET_VALUATION s, INSTRUMENT i
where
s.id_imnt = i.id_imnt
and s.id_posn_ref is NULL
and s.id_imnt_swap is NULL
and s.am_pnl_eqty > 0
and i.id_typ_imnt != 'SFX'

Select
s.id_prtf Portfolio_ID,
s.id_imnt Instrument_ID,
s.id_imnt_swap Instrument_Swap_ID,
s.id_ccy_std Currency,
s.am_posn Position,
s.pr_imnt_mtm_prev,
sy.pr_imnt_mtm,
s.am_mv_prev,
sy.am_mv

into #temptable1a
from SET_VALUATION s, SET_VALUATION_HIST sy, REFERENCE_DATA r
where
s.id_prtf = sy.id_prtf
and s.id_imnt = sy.id_imnt
and s.pr_imnt_mtm_prev != sy.pr_imnt_mtm
and s.am_mv_prev != sy.am_mv
and r.dt_bus_lst = sy.dt_bus

select
t.*,
tt.pr_imnt_mtm_prev,
tt.pr_imnt_mtm,
tt.am_mv_prev,
tt.am_mv

into #newtemp
from #temptable1 t, #temptable1a tt
where
t.Portfolio_ID = tt.Portfolio_ID

delete from #temptable1
where #temptable1.Portfolio_ID in (select Portfolio_ID from #newtemp)
delete from #temptable1a
where #temptable1a.Portfolio_ID in (select Portfolio_ID from #newtemp)

select "Where id_posn_ref is NULL and id_imnt_swap is NULL is the only criteria"
select * from #temptable1
select "Where SET VAL's pr_imnt_mtm_prev does not equal SET VAL HIST's pr_imnt_mtm, is the only criteria"
select * from #temptable1a
select "Where the output satisfies both Where id_posn_ref is NULL and id_imnt_swap is NULL AND Where SET VAL's pr_imnt_mtm_prev does not equal SET VAL HIST's pr_imnt_mtm"
select * from #newtemp

drop table #temptable1
drop table #temptable1a
drop table #newtemp

View 2 Replies View Related

Vertical Text Alignment

Feb 15, 2006

I have a series of Unbound control boxes in one row. some text extend to two lines and I want everything to be centered both horizontally and vertically.

Can't figure out how to vertically align the contents of the controlb boxes...

View 1 Replies View Related

Vertical Lines On Forms

Feb 10, 2005

Rather than manually draw vertical lines on my forms, I'm looking for a way to generate vertical lines using VBA code. Has anyone done this?

Thanks,
pc

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved