Search results

  1. M

    Duplicate Record No longer working

    hello all, For some reason my duplicate button now doesn't work, instead it pastes the values in an error table. I noticed that it seems to be copying the time fields and a text box that aren't in the table, but it never did this before. Any ideas? Thanks ________ AVANDIA LAW
  2. M

    Stop Booking if entry already exists

    any more help? mos ________ Paxil Death
  3. M

    Stop Booking if entry already exists

    your correct, but sickness is a leave type, reason why I want it like this is I am running a report where an employee has booked a holiday but then goes sick on the same day. What should happen is once the user enters a "sick" booking on the same day it removes the hours from the holiday booking...
  4. M

    Stop Booking if entry already exists

    that would mean an employee cant be sick on a day he has booked holiday. Only if the leave_type is holiday then stop the booking. Just to reiterate; user selects employee via combo box, then leave type etc. then once the date is selected it should see whether the employee has booked a holiday...
  5. M

    Stop Booking if entry already exists

    Update; Private Sub date_booked_BeforeUpdate(Cancel As Integer) Dim SID As String Dim var As Date Dim stLinkCriteria As String Dim rsc As DAO.Recordset Set rsc = Me.RecordsetClone SID = Me.strpayroll_number.Value var = Me.date_booked.Value stLinkCriteria = "[strpayroll_number]&[date_booked]="...
  6. M

    Stop Booking if entry already exists

    This is what i've adjusted so far, but I cannot work out how to check two fields (date and the payroll number), the parts in bold is where theres needs to be another field? Thanks Private Sub date_booked_BeforeUpdate(Cancel As Integer) Dim SID As String Dim var As Date Dim stLinkCriteria As...
  7. M

    Stop Booking if entry already exists

    Thanks, its slightly more complicated as it's reqired in two fields that needs to be checked for duplicated (payroll number & date booked). I'll have a go at adjusting the code for this. Any help is appreciated. Thanks once again. ________ Cheap glass pipes
  8. M

    Stop Booking if entry already exists

    Hello All, I've recently created a holiday booking form for employees. The only problem I have noticed is the user can double book someone even though the employee has the requested day already booked. Is there a way where to refuse booking if the employee has already booked the day already...
  9. M

    Stop Booking if entry already exists

    Hello All, I've recently created a holiday booking form for employees. The only problem I have noticed is the user can double book someone even though the employee has the requested day already booked. Is there a way where to refuse booking if the employee has already booked the day already...
  10. M

    Only Enable combo box when adding Record

    Hello All, I currently have a combo box that selects the employee to create a new holiday record. Once the user has finished adding the record I don't want to enable the field during the scrolling of the records. How can I do this? Thanks. m ________ Live sex
  11. M

    Filter subform with field from main form

    I have a main form with 4 subforms. They all work off specific fields from the mainform. One of my subforms basically looks at holidays booked for the day the employee wants to book. The only problem is It picks up days book for employees across all departments. The subform is based on a...
  12. M

    Form Refresh

    the Main form and subforms are based on queries. When I add a record on the form I wanted a refresh function but obviously could not do it as the forms are query based. A record is added and the subform contains a query that looks at which employees are off on that day thus update in that query...
  13. M

    Form Refresh

    Would it be better to have it under AfterUpdate on the form? mos ________ Avandia settlements
  14. M

    Form Refresh

    Thanks for the reply; so basically in the mainform: YourMainFormNameHere.YourSubFormCONTAINERNameHere.Form.Requery Forms!YourMainFormNameHere.Requery Subform: Me.Requery Are these placed in the AfterUpdate option of the forms? Regards ________ Web shows
  15. M

    Form Refresh

    ok, so Can i use the following to requery each form? Private Sub Form_Current() Dim rst As Recordset Set rst = Me.RecordsetClone Forms![AIA].Requery End Sub Thanks Mos ________ Paxil Lawsuit Information
  16. M

    Form Refresh

    So Requery refreshes the data on the form? thanks ________ Laguna Bay Condominium
  17. M

    Form Refresh

    Hello All, I currently have a form that has 4 subforms but I require a Refresh function that refreshes every single form. I have tried creating individual refresh buttons for each form but doesn't seem to work. Any help appreciated. Thanks Mos ________ Susanalady
  18. M

    Simple Vb Code Help

    thank you. mos ________ How To Roll Blunts
  19. M

    Simple Vb Code Help

    Hello All, I have a subform with a field that counts the number of agents off per team. I want to create a peice of vb code where If the department contains the letters "one" And the count is more than 1 to highlight the text box. I have the following written; Private Sub...
  20. M

    Quick Sum(IIf) help needed!

    still finding it difficult to create it. For the first requirement I have the below, but does not work. =DCOUNT(IIF([Leave_Type]="Sickness" AND [date_booked]<Format(Date(), "yyyy" -1),1,0)) ________ Park Royal Condos Pattaya
Back
Top Bottom