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 » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Requerying Automatically



 
 
Thread Tools Display Modes
  #1  
Old November 26th, 2009, 10:03 PM posted to microsoft.public.access.queries
DawnTreader
external usenet poster
 
Posts: 198
Default Requerying Automatically

Hello All

I have a query like this:

SELECT
utblPartListPriceQuery.ID,
utblPartListPriceQuery.Partnumber,
dbo_PART.ID, dbo_PART.DESCRIPTION,
dbo_PART.PRODUCT_CODE,
dbo_PART.COMMODITY_CODE,
dbo_PART.MFG_NAME,
dbo_PART.MFG_PART_ID,
dbo_PART.FABRICATED,
dbo_PART.PURCHASED,
dbo_PART.PRIMARY_WHS_ID,
dbo_PART.PRIMARY_LOC_ID,
dbo_PART.UNIT_PRICE,
dbo_PART.QTY_ON_HAND,
dbo_PART.QTY_ON_ORDER,
dbo_PART.QTY_IN_DEMAND,
dbo_PART.PREF_VENDOR_ID,
dbo_PART.BUYER_USER_ID,
dbo_PART.PLANNER_USER_ID,
IIf([UNIT_MATERIAL_COST] Is
Null,0,[UNIT_MATERIAL_COST])+IIf([UNIT_LABOR_COST] Is
Null,0,[UNIT_LABOR_COST])+IIf([UNIT_BURDEN_COST] Is
Null,0,[UNIT_BURDEN_COST])+IIf([UNIT_SERVICE_COST] Is
Null,0,[UNIT_SERVICE_COST]) AS [Our Cost]
FROM
utblPartListPriceQuery
LEFT JOIN
dbo_PART
ON utblPartListPriceQuery.Partnumber = dbo_PART.ID;

notice that the utblPartListPriceQuery Partnumber field is a place where
users can type in a new number and if it matches the ID in the dbo_PART table
then it would show all the other details from the other fields.

this query used to work fine. when the user typed in stuff to the data sheet
the other fields would populate fine from the table. i made some
modifications to the form and query but changed them back and now the
updating has stopped. i looked into an old back up of the forms and query and
stuff, that still does what it used to. does anyone have any idea as to what
hidden setting i changed for this query? i need it to go back to updating
after someone enters a valid part number that matches records in the other
table.

thinking about just importing from the backup and redoing all the
modifications... might be quicker.
  #2  
Old November 26th, 2009, 10:15 PM posted to microsoft.public.access.queries
DawnTreader
external usenet poster
 
Posts: 198
Default Requerying Automatically

Hello All

i figured it out. i had set the field in the table utblPartListPriceQuery to
be index with no duplicates. changing it back to no indexing causes the list
to automatically load field information from the other table.

"DawnTreader" wrote:

Hello All

I have a query like this:

SELECT
utblPartListPriceQuery.ID,
utblPartListPriceQuery.Partnumber,
dbo_PART.ID, dbo_PART.DESCRIPTION,
dbo_PART.PRODUCT_CODE,
dbo_PART.COMMODITY_CODE,
dbo_PART.MFG_NAME,
dbo_PART.MFG_PART_ID,
dbo_PART.FABRICATED,
dbo_PART.PURCHASED,
dbo_PART.PRIMARY_WHS_ID,
dbo_PART.PRIMARY_LOC_ID,
dbo_PART.UNIT_PRICE,
dbo_PART.QTY_ON_HAND,
dbo_PART.QTY_ON_ORDER,
dbo_PART.QTY_IN_DEMAND,
dbo_PART.PREF_VENDOR_ID,
dbo_PART.BUYER_USER_ID,
dbo_PART.PLANNER_USER_ID,
IIf([UNIT_MATERIAL_COST] Is
Null,0,[UNIT_MATERIAL_COST])+IIf([UNIT_LABOR_COST] Is
Null,0,[UNIT_LABOR_COST])+IIf([UNIT_BURDEN_COST] Is
Null,0,[UNIT_BURDEN_COST])+IIf([UNIT_SERVICE_COST] Is
Null,0,[UNIT_SERVICE_COST]) AS [Our Cost]
FROM
utblPartListPriceQuery
LEFT JOIN
dbo_PART
ON utblPartListPriceQuery.Partnumber = dbo_PART.ID;

notice that the utblPartListPriceQuery Partnumber field is a place where
users can type in a new number and if it matches the ID in the dbo_PART table
then it would show all the other details from the other fields.

this query used to work fine. when the user typed in stuff to the data sheet
the other fields would populate fine from the table. i made some
modifications to the form and query but changed them back and now the
updating has stopped. i looked into an old back up of the forms and query and
stuff, that still does what it used to. does anyone have any idea as to what
hidden setting i changed for this query? i need it to go back to updating
after someone enters a valid part number that matches records in the other
table.

thinking about just importing from the backup and redoing all the
modifications... might be quicker.

 




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 02:16 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.