Recent content by neilhoop

  1. N

    Can the default path be set for the Attachment control

    When you double click on the attachment control and choose Add from the box that pops up in my case my default file location is shown as Libraries > Documents with a list of files in that folder. I don't want this to be the default path I want something else. ---------- Neil
  2. N

    Can the default path be set for the Attachment control

    The title says it all. ---------- Neil
  3. N

    How to add new record in sub form

    I didn't find the answer there so I changed tact. I've decided to add some separate buttons to do all the things that I wanted to do with one button. I've now got a strange error message when I try to enter data in the new record on the subform. As soon as I start to type anything in the...
  4. N

    Display message while doing something.

    Just the job, for some reason needed to use forms!message.caption = " " forms!message.Repaint works fine. Thanks everyone for your help, again. --------- Neil
  5. N

    Display message while doing something.

    I guess I want my cake and eat it. Thin keeps the title and none obviously removes the border but just makes it, in my opinion, a plain and somewhat ugly box. I'm just wondering whether the title can be temporarily removed and restored in code.
  6. N

    How to add new record in sub form

    Hi, I have a form called Certificates with a subform on it called subClient. The subform is located on a tab control on the first tab. I have added a button below the subform to add a new record to it I'm using: Dim stDocName As String stDocName = "Forms![certificates]![subClient]"...
  7. N

    Display message while doing something.

    I've already done both of those, the only thing I'm left wondering is how to stop the title showing in the pop up form. ---------- Neil
  8. N

    Display message while doing something.

    Can anybody suugest a way of displaying an on screen message while something is being done in the background. ---------- Neil
  9. N

    SetFocus not working.

    I know it's not quite what you suggested but I came up with this. Option Compare Database Dim retz As Integer Sub subChecktxt(fieldname) Dim mmsg As String retz = 0 mmsg = Chr(13) & "Is invalid." mmsg = mmsg & Chr(13) & "It can not contain ' and " mmsg = mmsg & Chr(34) mmsg = mmsg & " in...
  10. N

    SetFocus not working.

    I'm going to have a go, wish me luck !!!! ---------- Neil
  11. N

    SetFocus not working.

    I just had a thought. I'd like to use this over and over again on different fields. Would I be right in saying that it could be written as a Public Function or Public Sub that can be called by passing the field name to it. If so can you guide me to where I can find out how to do it...
  12. N

    SetFocus not working.

    Got it, done it, works just fine. Thanks for your help. ---------- Neil
  13. N

    SetFocus not working.

    So I delete; If stpos <> 0 And stpos1 <> 0 Then xx = MsgBox(Me.FName & mmsg, vbCritical) Me.FName.SetFocus End If and replace those lines with Cancel = True ? ---------- Neil
  14. N

    SetFocus not working.

    I don't understand this bit. ---------- Neil
  15. N

    SetFocus not working.

    Hi, I have this code to validate input into a field. the problem is that the focus is not reset back to the field if there is a problem, it goes to the next field. Private Sub FName_LostFocus() mmsg = " is invalid. It can not contain ' and " mmsg = mmsg & Chr(34) mmsg = mmsg & " in the...
Back
Top Bottom