hello i need some help, i am getting this error when i press ok for a bill of materials. now i am not an expert on wither access or visual basic so this has got me lost. I did not make the database but am simply changing it to suit my needs. This function works fine in the original version (which i have) but i have modified the form in order for it to look abit better and now it does not work.....
it comes up with:
Complie error: ByRef arguement type mismatch
then when i press ok it brings me into visual basic and draws my attention
Private Sub btnOK_Click()
On Error Resume Next
glMajorPartNo = MajorPartNo
gbFormValue = True
glVehicleID = cboVehicleID
DoCmd.Hourglass True
If Not IsNull(cboVehicleID.VALUE) And Not cboVehicleID.VALUE = "" Then
CopyVehicleBOMToPartsReport cboVehicleID
Else
SetupReport MajorPartNo
End If
DoCmd.OpenReport ReportName, A_PREVIEW
DoCmd.Hourglass False
End Sub
I am using Access 2003 and visual basic 6.3,
any help would be good cuase i dont understand why it works in one and not in this one, as far as i know i havnt touched any or the coding
it comes up with:
Complie error: ByRef arguement type mismatch
then when i press ok it brings me into visual basic and draws my attention
Private Sub btnOK_Click()
On Error Resume Next
glMajorPartNo = MajorPartNo
gbFormValue = True
glVehicleID = cboVehicleID
DoCmd.Hourglass True
If Not IsNull(cboVehicleID.VALUE) And Not cboVehicleID.VALUE = "" Then
CopyVehicleBOMToPartsReport cboVehicleID
Else
SetupReport MajorPartNo
End If
DoCmd.OpenReport ReportName, A_PREVIEW
DoCmd.Hourglass False
End Sub
I am using Access 2003 and visual basic 6.3,
any help would be good cuase i dont understand why it works in one and not in this one, as far as i know i havnt touched any or the coding