Okay one last question, How do I set the value of combobox 2 to be dependant on combo box 1.
example:
combobox 1 = titleName = X-Men
combobox 2 = artistName= should only be the artist that have done x-men but in mine it list all artist, so if i select a random artist and he didnt do x-men a...
I guess what I sent you wasnt what I had open, the changes must not have applied or something, But thank you so much, I have Been working on this for three weeks
I am not using that code any more, I am using this one because it works better then the other one:
--------------------------------------------------------------
Private Sub Submit_Click()
DoCmd.OpenReport "Comic_List", acViewPreview, ,_ "(tblTitle.TitleName=[Forms]![Comic_List]![titleName])...
Im not sure what you mean by a sampl db. But to answer your question, yes i entered the same values in and it works justy right, i just dont want the msg boxes, i want it to recognize the values in the combo boxes
Run time error 2450
Microsoft Office cant find the form 'Comic_List' referred to in a Macro expression or Visual Basic code
------------------------------------------------------------
That makes sense because 'Comic_List' is a report not a form
What now?
Private Sub Command10_Click()
'On Error Go To Err_Command10_Click
Dim DocName As String
Dim stFilter As String
Dim lgtitleName As String
Dim lgartistName As String
strFilter = "1=1"
If Not IsNull(Me.titleName) Then
strFilter = strFilter & " And [Title_ID] = " &...
I got this little code to work to open one combo box selection to generate the right report.But dont know how to add a second combobox selection to it. Also created a qry that calls the titlename and artist name. No one seems to know how to do this. I have not been able to find the answer to...
Private Sub Command10_Click()
'On Error Go To Err_Command10_Click
Dim DocName As String
Dim stFilter As String
Dim lgtitleName As String
Dim lgartistName As String
strFilter = "1=1"
If Not IsNull(Me.titleName) Then
strFilter = strFilter & " And [titleName] = "" &...
In another post you said something about the combo box being multi select? If what you mean by that is that when you click the drop down arrow on the combo box that you have multiple options like for example my titleNmae combo box has 55 different choices to choose from , in other words there...
Yes I tried the code from that posting it didn't run though, it gave the error that i posted above. The data types for Title_ID and Artist_ID are Auto-number.
actually it doesnt work
Run time Error '3464': Data type mismatch in criteria expression
this is what is highlighted:
DoCmd.OpenReport stDocName, acPreview, , strFilter
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.