I am pretty new to editing things in vba access. I have a report that didn't have a field that I needed in the field list, I modified the recordsource query, it is a sql pass through query:
SELECT dbo.SalesOrderDelivery.SOD_RecordID,dbo.SalesOrder Delivery.SOD_UserDef1,dbo.SalesOrderDelivery.SOD_U serDef2, dbo.SalesOrder.SOM_SalesOrderID, dbo.SalesOrderline.SOI_PackslipDesc,dbo.SalesOrder .SOM_SpecialInst, dbo.SalesOrderLine.SOI_SOLineNbr, dbo.SalesOrderDelivery.SOD_RequiredDate, dbo.Shipment.SH_ShipDate AS SOS_ShipDate, dbo.ShipmentLine.SHL_ShipQty AS SOS_ShipQty, dbo.ShipmentLine.SHL_CertificationNbr AS SOS_CertificationNbr, dbo.Shipment.SH_PackingSlipNbr AS SOS_PackingSlipNbr,
That's part of it, but basically I typed in the CertificationNbr entry. When I run it in the query screen, I am able to pull the cert# from the table, and get the field to appear on the field list in the report. I then proceed to put it on the report, save the report, and compile the files in our ERP software. After I compile the files, if I re-open the report and query my addition to the query is gone.
I know I'm probably missing a step somewhere, but have no idea what else to try. Thanks in advance for your help.