Search results

  1. G

    Create multiple records based on date range

    Hi Mike I think I got a solution similar to what you are after on here a few weeks ago. Look at this thread: http://www.access-programmers.co.uk/forums/showthread.php?t=266188 The code was specific to my db so will need adapting but there is a sample database there to look at. If...
  2. G

    Calculating the information for a text field on a form from a query

    Hi vbaInet I hoped you would see this one. Aside from the where condition the query simply shows each individual date that has the activity 'Holiday'. I just need to be able to calculate the datediff between my start date and the last holiday start date. So the form will let you...
  3. G

    Calculating the information for a text field on a form from a query

    Oops should have removed that Where condition!! WHERE (((Resourcing.Start_Date) Between DateSerial(Year(Date())-IIf(Month(Date())<4,1,0),4,1) And DateSerial(Year(Date())+IIf(Month(Date())>3,1,0),3,31)) AND ((Resourcing.Activity) Like "Holiday*")
  4. G

    Calculating the information for a text field on a form from a query

    Even thinking of the title for this question was difficult for me. When it comes to code I'm a rank amateur. Just ask vbaInet:D Here's what I would like to do: I have a data entry form [Resources] and I would like to display some information about holidays in the form footer. Once the user...
  5. G

    Warn about conflicting entries and offer choice to edit conflicting entry or current

    So I created a new form. Referenced it in your code and it worked. strCondition was matching the records and I didn't need to change anything. But you knew that.:D
  6. G

    Warn about conflicting entries and offer choice to edit conflicting entry or current

    Yes there is. You're right as always. But I could recreate it as a form. Leave it with me. Sorry to be a pain
  7. G

    Warn about conflicting entries and offer choice to edit conflicting entry or current

    Hi vbaInet Was thinking about your last comment. The form 'Edit_Hours is a main form not a subform (although I have used it as a subform elsewhere) so I should be able to filter it. I tried DoCmd.OpenForm "Edit Hours", , , "Trainer_Name =" & Cmb_Trainer_Name.ValueBut it tells me that I am...
  8. G

    Warn about conflicting entries and offer choice to edit conflicting entry or current

    She'd kill me for making too much noise and 'playing with that stupid database' I was just wondering about that. If I opened it as a form I could use Do.Cmd to filter on the trainer_Name and even the Start_Date couldn't I? I'll look in to functionx. I can write some very basic instruction as...
  9. G

    For me it's alcoholic complan. I live on it. Is your garden for sale? lol

    For me it's alcoholic complan. I live on it. Is your garden for sale? lol
  10. G

    Warn about conflicting entries and offer choice to edit conflicting entry or current

    It works, it works, it works. I would dance around the room but I'm shattered. What's better every combination of AM, PM and all day seems to work. I thought I had more code to do. I'm delighted. Thank you for your time and patience beyond what is reasonable to expect. Obviously I...
  11. G

    Warn about conflicting entries and offer choice to edit conflicting entry or current

    The code is attached to the form resourcing. I might have to go offline for an hour but will be back
  12. G

    Warn about conflicting entries and offer choice to edit conflicting entry or current

    In the VBA window I double clicked the form 'Resourcing' which then showed all the code attached to the resourcing form. I pated the function as the last entry
  13. G

    Warn about conflicting entries and offer choice to edit conflicting entry or current

    Sorry meant to post a screenshot of the field
  14. G

    Warn about conflicting entries and offer choice to edit conflicting entry or current

    Ok the field is actualy listed as cmb_Trainer_Name and the text label is Trainer_Name_Label. I tried typing me. and waiting for it to prompt me with a list but it didn't it just waited for my input. I tried changing the code to strTrainer = "[cmb_Trainer_Name] = '" &...
  15. G

    Warn about conflicting entries and offer choice to edit conflicting entry or current

    Ok. Done that. I'm still getting a compile error on strTrainer = "[Trainer_Name] = '" & Me.Trainer_Name & "'" and it has allowed me to double book a trainer. I may have to consider reverting to something like graph paper and coloured pens:banghead: Only kidding. I've just learned how...
  16. G

    Warn about conflicting entries and offer choice to edit conflicting entry or current

    I'm completely lost. The form doesn't have rows? It's a data entry popup
  17. G

    Warn about conflicting entries and offer choice to edit conflicting entry or current

    Not sure what you mean. Do you mean make it the before update? The wife would probably thank you by the way;)
  18. G

    Warn about conflicting entries and offer choice to edit conflicting entry or current

    It's just as well we use nicnames on here or you would probably find me and kill me
  19. G

    Warn about conflicting entries and offer choice to edit conflicting entry or current

    Public Function DuplicatesCheck() As Boolean Dim intCheck As Integer Dim strDates As String Dim strDuration As String Dim strTrainer As String Dim strCondition As String Dim strMessage As String Dim intResponse As Byte...
Back
Top Bottom