T
Tony K
George was able to help me out last week. Thanks George. I have some
convert problems. RECAP: I'm converting SQL VIEWS into ACCESS Queries.
Some problems I have use CONVERT in SQL but I don't know the appropriate
syntax in Access. Here are the queries I have causing problems.
The error I receive is: "Undefined function CONVERT in expression"
Any help would be greatly appreciated.
SELECT SUM(quantity) AS qty, line_item_id, trans_type, action_type,
customer_id, supplier_id, po_id, invoice_id, company_id, CONVERT([CHAR](20),
trans_date, 101)
AS transaction_date
FROM inventory_transactions
WHERE (record_status = 4)
GROUP BY line_item_id, trans_type, action_type, customer_id, supplier_id,
date_code, po_id, invoice_id, company_id, CONVERT([CHAR](20), trans_date,
101)
SELECT SUM(inventory_transactions.quantity) AS qty,
inventory_transactions.line_item_id, inventory_transactions.trans_type,
inventory_transactions.action_type,
inventory_transactions.customer_id,
inventory_transactions.po_id, inventory_transactions.invoice_id,
inventory_transactions.company_id,
CONVERT([CHAR](20),
inventory_transactions.trans_date, 101) AS transaction_date,
inventory_transactions.location_id, inventory_transactions.user_id,
sites.site_name, location.code AS location
FROM ((inventory_transactions INNER JOIN
location ON inventory_transactions.location_id =
location.location_id) INNER JOIN
sites ON location.site_id = sites.site_id)
WHERE (inventory_transactions.record_status = 1 OR
inventory_transactions.record_status = 2) AND
(inventory_transactions.adjust_reason_id <> 11)
GROUP BY inventory_transactions.line_item_id,
inventory_transactions.trans_type, inventory_transactions.action_type,
inventory_transactions.customer_id,
inventory_transactions.date_code,
inventory_transactions.po_id, inventory_transactions.invoice_id,
inventory_transactions.company_id,
CONVERT([CHAR](20),
inventory_transactions.trans_date, 101), inventory_transactions.location_id,
inventory_transactions.user_id, sites.site_name,
location.code
Thank you,
Tony K
convert problems. RECAP: I'm converting SQL VIEWS into ACCESS Queries.
Some problems I have use CONVERT in SQL but I don't know the appropriate
syntax in Access. Here are the queries I have causing problems.
The error I receive is: "Undefined function CONVERT in expression"
Any help would be greatly appreciated.
SELECT SUM(quantity) AS qty, line_item_id, trans_type, action_type,
customer_id, supplier_id, po_id, invoice_id, company_id, CONVERT([CHAR](20),
trans_date, 101)
AS transaction_date
FROM inventory_transactions
WHERE (record_status = 4)
GROUP BY line_item_id, trans_type, action_type, customer_id, supplier_id,
date_code, po_id, invoice_id, company_id, CONVERT([CHAR](20), trans_date,
101)
SELECT SUM(inventory_transactions.quantity) AS qty,
inventory_transactions.line_item_id, inventory_transactions.trans_type,
inventory_transactions.action_type,
inventory_transactions.customer_id,
inventory_transactions.po_id, inventory_transactions.invoice_id,
inventory_transactions.company_id,
CONVERT([CHAR](20),
inventory_transactions.trans_date, 101) AS transaction_date,
inventory_transactions.location_id, inventory_transactions.user_id,
sites.site_name, location.code AS location
FROM ((inventory_transactions INNER JOIN
location ON inventory_transactions.location_id =
location.location_id) INNER JOIN
sites ON location.site_id = sites.site_id)
WHERE (inventory_transactions.record_status = 1 OR
inventory_transactions.record_status = 2) AND
(inventory_transactions.adjust_reason_id <> 11)
GROUP BY inventory_transactions.line_item_id,
inventory_transactions.trans_type, inventory_transactions.action_type,
inventory_transactions.customer_id,
inventory_transactions.date_code,
inventory_transactions.po_id, inventory_transactions.invoice_id,
inventory_transactions.company_id,
CONVERT([CHAR](20),
inventory_transactions.trans_date, 101), inventory_transactions.location_id,
inventory_transactions.user_id, sites.site_name,
location.code
Thank you,
Tony K