Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: ancb
  • Order by date
  1. ancb

    Script to stop and start services as a user on NT Server?

    I had the same problem with a program. Below is the script that I made. It shuts down the process waits 10 seconds and then restarts the process. When the process is back up a ready message box appears. It is used on XP pro so your permissions may need to be adjusted...
  2. ancb

    VBA Combo Boxes

    Exactly what I needed Thanks.
  3. ancb

    What is wrong with this DLookup?

    Thanks RoyVidar, The &s did the trick. Here's a star.
  4. ancb

    What is wrong with this DLookup?

    I am trying to use a DLookup to fill in a text box" MTMiles.Value = DLookup("[DHMiles]", "taRate", "[ShipID] = Forms![sfLoadPlanning]![CurrentLocID]" And "[RecID] = Forms![sfLoadPlanning]![Shipper]") When it is executed I get a 'Type Mismatch!'...
  5. ancb

    Copy and paste form/subform data

    I'm not really sure how to approach it without seeing the structure of your forms and tables. I there any way you could send me a copy to look at with out any data?
  6. ancb

    Field Validation

    Glad to help.
  7. ancb

    Name Error in Form

    I put it in where the fields go. I just used the build expression wizard. Try using the criteria area to filter the null ie: <> Null
  8. ancb

    Name Error in Form

    I had the a very similar situation to what you described. Sometime it worked fine but some times the text box said #Name. I put the IIF statement in the query and haven't had a problem since (about 3 weeks).
  9. ancb

    Field Validation

    Resubmit again WLTC, try Putting this in the AfterUpdate of Text40: ************** Text50.SetFocus ************** Put this in the LostFocus of Text50 **************************************************** If Text40.Value > 1 And Text50.Value = 0 Then MsgBox &quot;This field cannot be...
  10. ancb

    Field Validation

    Resubmit WLTC, try Putting this in the AfterUpdate of Text40: ************** Text50.SetFocus ************** Put this in the LostFocus of Text50 **************************************************** If Text40.Value > 1 And Text50.Value = 0 Then MsgBox &quot;This field cannot be zero&quot...
  11. ancb

    Field Validation

    WLTC, try Putting this in the AfterUpdate of Text40: ************** Text41.SetFocus ************** Put this in the LostFocus of Text41 **************************************************** If Text40 > 1 And Text41.Value = 0 Then MsgBox &quot;This field cannot be zero&quot;, vbOKonly...
  12. ancb

    Copy and paste form/subform data

    bluegnu, you could use SQL to append the records. I don't know the information or table structure that you are working with but here is some basic code that could get you started. 1. on your form create a button to copy the info. 2. in the on click property enter the following code or a...
  13. ancb

    Insert query syntax error

    cathy An easy way to build the code is to create a saved action query ( in your case, I think, append) from the table that you want to add to and then view SQL and copy and paste it into your vba. When you CR lines use: &quot; & _ example: strSQL = &quot;INSERT INTO Table var1, &quot; & _...
  14. ancb

    Action Queries vs VBA code in a multi user environment

    Is it better or more stable to use sql code directly in a vba module than have an action query called from the vba module, particularly in a multiuser database? The database has a front and back end and each user has their own copy of the front end on their computer. It seems that I get a lot of...
  15. ancb

    Date in field on control button click

    Let me add to that: In the On Lost Focus Property: If Not IsNull([DateTxtBoxHere].Value) Then [ButtonNameHere].Enabled = False Else End If This way the button will only disable if there is a date in the datestamp text box.
  16. ancb

    Date in field on control button click

    holle, You could have the button set focus to another control, the date text box for instance: in the On Click property: [DateTxtBoxHere].SetFocus and then in the On Lost Focus property: [ButtonNameHere].Enabled = False
  17. ancb

    continuos form: how to display the different record in a different way

    Davide77, You could set the Conditional formatting to change the backcolor and font color of the text box to the same color as the backcolor of your form when the combo box says 'no'. It won't really be hidden just camoflauged.
  18. ancb

    Any Ideas?? Not to exit application.

    Nick24, Maybe instead of telling them to close the report have a pop up subform that says something like &quot;Click 'OK' to continue&quot; and the 'OK' button simply closes the pop up form and the report at the same time. Hope that makes sense.

Part and Inventory Search

Back
Top