LearnersPermit
Technical User
I have a Stores Catalogue that I have created a problem with the edit page.
What happens is that the user selects the item id and description of the item that they want to edit. So long as all information is completed, the item is displayed. If only part of the information is displayed, there are no records returned.
Any suggestions?
<!--- Get the list of Items - this is where they choose the item to be editted--->
<cfquery name="qryGetAllItems" datasource="#request.dsn#" username="#request.uname#" password="#request.passwd#">
SELECT itemid,description
FROM tblStores
ORDER BY itemid ASC
</cfquery>
<!--- Get one item - this should display what is to be editted --->
<cfquery name="qryGetItem" datasource="#request.dsn#" username="#request.uname#" password="#request.passwd#">
SELECT a.itemid,a.description,a.unit,a.price,a.other,a.catid,a.supplierid,a.enabled,b.catid,b.category,c.suppid,c.supplier
FROM tblStores a,
tblCategory b,
tblSupplier c
WHERE itemid = #locitemid#
AND a.catid=b.catid
AND a.supplierid=c.suppid
ORDER BY itemid ASC
</cfquery>
What happens is that the user selects the item id and description of the item that they want to edit. So long as all information is completed, the item is displayed. If only part of the information is displayed, there are no records returned.
Any suggestions?
<!--- Get the list of Items - this is where they choose the item to be editted--->
<cfquery name="qryGetAllItems" datasource="#request.dsn#" username="#request.uname#" password="#request.passwd#">
SELECT itemid,description
FROM tblStores
ORDER BY itemid ASC
</cfquery>
<!--- Get one item - this should display what is to be editted --->
<cfquery name="qryGetItem" datasource="#request.dsn#" username="#request.uname#" password="#request.passwd#">
SELECT a.itemid,a.description,a.unit,a.price,a.other,a.catid,a.supplierid,a.enabled,b.catid,b.category,c.suppid,c.supplier
FROM tblStores a,
tblCategory b,
tblSupplier c
WHERE itemid = #locitemid#
AND a.catid=b.catid
AND a.supplierid=c.suppid
ORDER BY itemid ASC
</cfquery>