Hello Everyone,
All of the sudden I am getting VB Error 3071 when running a report, it has been running fine for about a year. All other reports launching from the form work fine this one form is giving me an issue. The area in bold is causing the error. any suggestions
The festival year is a unbound text field located in the frmReporting
rptVendorSpaceAssignments pulls from qryVendorSpaceInfo
Option Compare Database
Private Sub Form_Close()
DoCmd.ShowToolbar "Ribbon", acToolbarYes
DoCmd.OpenForm "frmStart", acNormal
End Sub
Private Sub Form_Open(Cancel As Integer)
DoCmd.ShowToolbar "Ribbon", acToolbarNo
End Sub
Private Sub OpenTotalsReport_Click()
If IsNull(Me.txtFestivalYear) Then
Me.txtFestivalYear.SetFocus
MsgBox "Enter Festival Year", vbExclamation
Exit Sub
End If
DoCmd.OpenReport "rptTotals", acViewPreview
End Sub
Private Sub rptBalanceDue_Click()
If IsNull(Me.txtFestivalYear) Then
Me.txtFestivalYear.SetFocus
MsgBox "Enter Festival Year", vbExclamation
Exit Sub
End If
DoCmd.OpenReport "rptBalanceDue", acViewPreview
End Sub
Private Sub rptVendorSpaceCheckin_Click()
If IsNull(Me.txtFestivalYear) Then
Me.txtFestivalYear.SetFocus
MsgBox "Enter Festival Year", vbExclamation
Exit Sub
End If
DoCmd.OpenReport "rptVendorCheckInStatus", acViewPreview
End Sub
Private Sub RunTaxIDRpt_Click()
If IsNull(Me.txtFestivalYear) Then
Me.txtFestivalYear.SetFocus
MsgBox "Enter Festival Year", vbExclamation
Exit Sub
End If
DoCmd.OpenReport "rptVendorTaxIDInfo", acViewPreview
End Sub
Private Sub runVendorSpaceAssignments_Click()
If IsNull(Me.txtFestivalYear) Then
Me.txtFestivalYear.SetFocus
MsgBox "Enter Festival Year", vbExclamation
Exit Sub
End If
DoCmd.OpenReport "rptVendorSpaceAssignments", acViewPreview
End Sub
This is the sql for the qryVendorSpaceInfo
SELECT tblVendorInfo.FirstName, tblVendorInfo.LastName, tblVendorInfo.BusinessName, tblVendorInfo.VendorType, tblVendorInfo.DescProdService, tblPaymentInfo.SpaceNumber1, tblPaymentInfo.SpaceNumber2, tblPaymentInfo.SpaceNumber3, tblPaymentInfo.FestivalYear,
tblVendorInfo.PhoneNumber, tblVendorInfo.CellNumber, tblPaymentInfo.SpaceNumber4
FROM tblVendorInfo INNER JOIN tblPaymentInfo ON tblVendorInfo.VendorID = tblPaymentInfo.VendorID
WHERE (((tblPaymentInfo.FestivalYear)=[Forms]![frmReporting]![txtFestivalYear]))
ORDER BY tblPaymentInfo.SpaceNumber1;