Search results

  1. T

    Enable Button

    Can anyone help? Thanks in advance.
  2. T

    Enable Button

    My column count is 1. I put this now: Private Sub Form_Current() If (Me.cmbDisposition.Value = "Won") Then Me.Parent!btnMoreInfo.Enabled = True Else Me.Parent!btnMoreInfo.Enabled = False End If End Sub The error: Run-time error '2452' The expression you entered has an invalid...
  3. T

    Enable Button

    I placed the code in my subform. Here is the complete code: Private Sub Form_Current() If (Me.cmbDisposition.Value = "Won") Then Me.Parent.Parent!btnMoreInfo.Enabled = True Else Me.Parent.Parent!btnMoreInfo.Enabled = False End If End Sub The error reads: Run-time error '2452' The...
  4. T

    Enable Button

    Sorry everyone. Today is not my day. How do you say that you want the button enabled? I put Me.Parent!btnMoreInfo.Enabled = True but I doubt that is right....and of course, I tried it and didnt work.
  5. T

    Enable Button

    Yes, thanks for the link. Would I use this? Me.Parent.Parent!ControlName I tried that and I dont know what Parent would be....I tried just: Me.Parent.Parent!btnMoreInfo But that didnt work...
  6. T

    Enable Button

    The combo box just has text within it. The only choices are "Won" and "Lost". If "Won" than enable btnMoreInfo. If "Lost" or blank then btnMoreInfo is disabled.
  7. T

    Enable Button

    I searched Google and this forum for the answer, but I didn't find it. I have a combo box 'cmbDisposition' in a subform 'LeadInformationSubform'. When the user choses "Won" from the combo box, I want a button 'btnMoreInfo' in the mainform 'AllRecordsSearch' to be enabled. If the combo box has...
  8. T

    Open From From Subform Where Condition

    I got it fixed. Thank you!
  9. T

    Open From From Subform Where Condition

    Forgot to mention...I did try that as well. I also tried to create a Macro and put in a Where condition but that didnt work.
  10. T

    Open From From Subform Where Condition

    I know this has been brought up, and I have tried EVERYTHING to solve this problem, but it still wont work. I have tried DoCmd.OpenForm "SalesWon", , , "LeadID = " & Me.LeadID but I might be doing it wrong. I dont know. Open Add/EditRecords And if you go down to the Lead Information section...
  11. T

    Adding A Message Box

    You have no clue where I looked to solve this problem. I looked at several websites and several threads on here and I tried several things with my code, but nothing worked. That is why I posted the question. It is just funny that your signature says "Your happy Mailman is always happy to...
  12. T

    Dao.recordset

    And namliam, why do you get upset? I thought these forums are designed to HELP someone who has questions. And I dont want someone to sit all day and help. And you do NOT have to help me if you dont want to, so I dont know why you are complaining. Am I making you sit here and help you? No...
  13. T

    Dao.recordset

    I want the message box to show up ONLY when there are no matches.
  14. T

    Dao.recordset

    That compiled, but the message box show up when there was a match to a search word.
  15. T

    Dao.recordset

    I want to have a message box pop up when there are no results. This is code to search a subform. Take a look at this: http://www.access-programmers.co.uk/forums/showpost.php?p=723424&postcount=13 namliam told me to put this....so I did and I am getting that error.
  16. T

    Dao.recordset

    I am getting an error: Invalid use of property and it is highlighting RS.RecordCount Can anyone help?
  17. T

    Dao.recordset

    I am receiving an error message: Compile error: User-defined type not defined. I am trying to make a message box appear when there are no results. Here is my code: Private Sub btnSearchContacts_Click() Dim strSQL As Variant Dim l_strAnd As String Dim RS As DAO.Recordset Set RS...
  18. T

    Adding A Message Box

    And I really do appreciate your patience with this...
  19. T

    Adding A Message Box

    One more error: 'User-defined type not defined' and it highlights "RS As DAO.Recordset"
  20. T

    Adding A Message Box

    Tried that. It gives me an error message "Compile Error: method or data member not found" I just tried DCount() and it would do the message box, but it would find a match and then display a message box saying there were no matches...
Back
Top Bottom