Hi all, I have issue when i try to click on the "edit" button on my unbound form the second time to retrieve the data on my subform to the textbox on my form.
I have no idea what causes this, as i try to change the data type for my PO number from short text to number then number to short text again, but it still doesnt seem to work.
Besides that, i have no issue for the first time when i click on the "edit" button and no issue once i close the form and open it again.
Appreciated any help that is offer!
Code:
Private Sub cmdEdit_Click()
'check whether there is exists data in list
If Not (Me.UnmatchFabricPOqrySubform.Form.Recordset.EOF And Me.UnmatchFabricPOqrySubform.Form.Recordset.BOF) Then
'get data to text box control
With Me.UnmatchFabricPOqrySubform.Form.Recordset
Me.txtGLGPO = .Fields("PO") <Error appear here>
Me.txtFabricDelivery = .Fields("Date")
Me.txtStyleNo = .Fields("Style NO")
Me.txtGLA = .Fields("GL Lot")
Me.txtFabrication = .Fields("Description2")
Me.txtWidth = .Fields("Fabric Cuttable Width")
Me.txtColour = .Fields("Color")
Me.txtLbs = .Fields("Our Qty")
Me.txtYds = .Fields("Supplier Qty")
Me.txtFabricDelivery = .Fields("Date")
Me.txtFinishedGoods = .Fields("GSMBeforeWash")
Me.txtGSMsq = .Fields("GMS Per SqYD")
Me.txtPrintedRemarks = .Fields("Remark")
Me.txtFabricWeight = .Fields("Fabric Weight")
Me.TXTuNITpRICE = .Fields("Unit Price")
Me.txtName1 = .Fields("Name1")
Me.txtGarmentDelDate = .Fields("Garment Delivery Date")
Me.txtLine = .Fields("Line")
Me.Image97.Picture = Me.txtGarmentSketch & ""
I have no idea what causes this, as i try to change the data type for my PO number from short text to number then number to short text again, but it still doesnt seem to work.
Besides that, i have no issue for the first time when i click on the "edit" button and no issue once i close the form and open it again.
Appreciated any help that is offer!