Search results

  1. J

    Form with Command button

    You will probably need to create a filter based on the results of your combo boxes and you can either pass it to your report when you DoCmd.OpenReport or set it after the report is opened and then apply the filter. Without knowing the source for your combo boxes and what info they return, this...
  2. J

    Want to combine some code but not sure how

    I may need a little more info on your setup. How are you getting your values for dsuf & dpre? If text boxes then: Try assigning to variables first before opening your form. Also for future reference try not to use spaces in your (object names, Table names, field names, etc.) it makes it easier...
  3. J

    Want to combine some code but not sure how

    Dim stLinkCriteria As String stLinkCriteria = "[Prefix] = '" & Me.dpre & "'" & " And [Patent Type] = '" & Me.dsuf & "'" DoCmd.OpenForm "Dockets Data Input Form", , , stLinkCriteria Hope This Helps.
  4. J

    Filter with date - problem

    My mistake, try stLinkCriteria = "[Status ID]=" & Statid & " And [Action dato] >= '" & MyDate & "'"
  5. J

    Filter with date - problem

    MyDate = Date will work OK. and stLinkCriteria = "[Status ID]=" & Statid & ";[Action dato] >= '" & MyDate & "'"
  6. J

    Filter with date - problem

    I am assuming that when this runs it shows a single record. Change the first line to: MyDate = Date() stLinkCriteria is the filter that is automatically being applied when the form is opened, so it needs to change to the following (Also assuming MyDate is dimensioned as a string)...
  7. J

    Multiple combo boxes on the form

    See if this link will help? http://www.tek-tips.com/faqs.cfm?fid=4389
  8. J

    multiple copies of the form

    See if this link will help? http://www.tek-tips.com/faqs.cfm?fid=4389
  9. J

    multiple copies of the form

    See if this link will help? http://www.tek-tips.com/faqs.cfm?fid=4389
  10. J

    Need help on entering "No"

    Is Approval a (True/False or Yes/No Field?) or Text Field? Is your form a single form, continuous form or datasheet?
  11. J

    Need help on entering "No"

    In The After Update Property Put: If IsNull(Me.[coordinator name]) Then Me.Approval = "No" Else Me.Approval = "Yes" End If And also set the Default for the textbox = No If this is an input form. If the form is for editing put the same code as above into the On Open event and leave...
  12. J

    Creating 'flashing' form controls - problem with code

    Try changing you code to this to add error handling to you subroutine. Private Sub Form_Timer() On Error Goto Err_Form_Timer If Me.txtCurrentAge.Value < 18 Then Me.txtCurrentAge.Visible = Not Me.txtCurrentAge.Visible Else Me.txtCurrentAge.Visible = True End If Exit_Form_Timer: Exit Sub...
  13. J

    Command Button to clear

    If your form is bound to a table or query then, In the On Click property of your command button, after the (VB) command to save the record, insert the following line: DoCmd.GoToRecord , , acNewRec That will take you to a new blank record, ready for new input. And if it doesn't go to the...
  14. J

    Input Box Error

    Might be some required field. If so, at the beginning of the cancel routine try: If Me.Dirty Then Me.Undo End If The rest of your Cancel code
  15. J

    Preventing user from restoring form

    You might try changing the Border Style to "Dialog", "Thin" or "None".
Back
Top Bottom