Hey, So I have a form that I would like to tack onto the top of a report that I have...it looks good, just a few problems.
1) (most important) i lose the functionality of the form...the code for the form looks like this:
so, when the button is clicked, the report queries...it works, EXCEPT you cant change the value of the comboboxes...you can see all the options.....but you just cant click any..anyone know what that may be all about?
2) the sub form (i added the form to the report) has an ugly border around that I wouldnt mind getting rid of...I want it to look like it is one form...not sub forms...ya know what I mean?
here is a screen of what I am looking at (note: the report isnt formatted in the slightest)
thanks! if you need more details just leave a q
1) (most important) i lose the functionality of the form...the code for the form looks like this:
Code:
Option Compare Database
Private Sub Command2_Click()
Dim criteria As String
criteria = ""
If IsNull(Me.Text_Name.Column(1)) Or (Me.Text_Name.Column(1) = "") Then
criteria = "ProjectID = '" & Me.Text_ProjID.Column(0) & "'"
ElseIf IsNull(Me.Text_ProjID) Then
criteria = "Name = '" & Me.Text_Name.Column(1) & "'"
ElseIf Not IsNull(Me.Text_ProjID) And Not IsNull(Me.Text_Name) Then
criteria = "Name = '" & Me.Text_Name.Column(1) & "' AND ProjectID = '" & Me.Text_ProjID.Column(0) & "'"
End If
DoCmd.OpenReport "rptsql", acViewReport, , criteria
End Sub
2) the sub form (i added the form to the report) has an ugly border around that I wouldnt mind getting rid of...I want it to look like it is one form...not sub forms...ya know what I mean?
here is a screen of what I am looking at (note: the report isnt formatted in the slightest)
thanks! if you need more details just leave a q
