chuckduarte
New member
- Local time
- Today, 05:28
- Joined
- Feb 19, 2019
- Messages
- 18
Unable to figure out why i'm getting a Run-time error 3075. The VBA Message box pops up with the Blue section listed and in the VBA editor the RED item is highlighted in yellow. The SQL is from an existing query that works fine. Currently i'm just using a command button (temporarily) to display the results after the SQL runs. But my end result is to add a Dcount or Count to only display the quantity of records in an unbound text box.
Any help will be greatly appreciated.
Private Sub Command270_Click()
DoSQL
End Sub
-----------------------------------------------------------------------------------
Private Sub DoSQL()
Dim SQL As String
SQL = "SELECT TCTOData.TCTODataID, ProjectData.RCN, TCTOData.TDes, " & _
"TCTOData.TCTO, SupplementData.Supplement, ProjectData.RMName, " & _
"SupplementData.Writer, SupplementData.IssueDate, TCTOData.Status, " & _
"SupplementData.SupplementStatus" & _
"FROM (ProjectData INNER JOIN TCTOData ON ProjectData.ProjectID, " & _
"= TCTOData.ProjectID) INNER JOIN SupplementData ON, " & _
"TCTOData.TCTODataID = SupplementData.TCTODataID;"
DoCmd.RunSQL SQL
End Sub
Any help will be greatly appreciated.
Private Sub Command270_Click()
DoSQL
End Sub
-----------------------------------------------------------------------------------
Private Sub DoSQL()
Dim SQL As String
SQL = "SELECT TCTOData.TCTODataID, ProjectData.RCN, TCTOData.TDes, " & _
"TCTOData.TCTO, SupplementData.Supplement, ProjectData.RMName, " & _
"SupplementData.Writer, SupplementData.IssueDate, TCTOData.Status, " & _
"SupplementData.SupplementStatus" & _
"FROM (ProjectData INNER JOIN TCTOData ON ProjectData.ProjectID, " & _
"= TCTOData.ProjectID) INNER JOIN SupplementData ON, " & _
"TCTOData.TCTODataID = SupplementData.TCTODataID;"
DoCmd.RunSQL SQL
End Sub