Autofill Query Field based upon other fields within the same query?

rsmonkey

Registered User.
Local time
Yesterday, 20:34
Joined
Aug 14, 2006
Messages
298
Hi,

Baisically I got this query which controls the selection of Software within a system. i.e. It contains the fields Vender_ID, Application_ID, ApplicationEdition_ID and ApplicationVersion_ID. These auto-filter based upon the users selection (e.g. Vender=Adobe so Application=Acrobat/Photoshop/etc...)

Right some from the user software/application selection i want it so that it will automatically assign a License_ID defined within a table tblLicense_Information.
Baisically im asking whether i can put this in the 'criteria' box:

Code:
         "SELECT tblSoftwareOverview.License_ID FROM tblSoftwareOverview WHERE ((tblSoftwareOverview.Vender_ID=qryHardwareSoftware.Vender_ID) AND (tblSoftwareOverview.Application_ID=qryHardwareSoftware.Application_ID)  AND 
(tblSoftwareOverview.ApplicationEdition_ID=qryHardwareSoftware.ApplicationEdition_ID) 
AND(tblSoftwareOverview.ApplicationVersion_ID=qryHardwareSoftware.ApplicationVersion_ID));"

I know the sql is not exactly right but you get the idea of what i want to achieve! But im guessing you cant really have an sql statement within an sql statement so any other suggestions on how i can do this would be much appreciated as the INSERT INTO command didnt like inserting into a query and when inserting straight into the table, the query failed...

cheers
 

Users who are viewing this thread

Back
Top Bottom