Search results

  1. Kayleigh

    Weekday Function in T-SQL

    Hi Would anyone be able to help me convert this Access function to T-SQL: Weekday(getDate(),2)
  2. Kayleigh

    Solved Pass-through queries in SQL server

    You are right about that. I have singled out the queries/forms which were running very slow and converting those to pass-through. Been quite successful so far! Now I am looking to write some code to convert the simple queries to pass-through. Can anyone suggest how to change the connection...
  3. Kayleigh

    Solved Undo Updates on a Subform

    Hi @theDBguy I am trying your suggestion of using a bound form and saving the old values dynamically. I tried the following approach but it is not working at all. Am I missing something here? Declared a public array: Public oldVals(8) As Variant Each value is assigned to one element in the...
  4. Kayleigh

    Validate dates in date/time field

    Thanks. Very informative. I think validation is the way forward here.
  5. Kayleigh

    Validate dates in date/time field

    What type of validation rule will restrict dates to be within last 50 years or future 50 years?
  6. Kayleigh

    Validate dates in date/time field

    Hi Just come across a really weird issue. I have several date/time fields which appear in a form. When entering the dates it will allow invalid dates e.g. 1/1/111 I always thought a date field would check that a valid date has been input before updating data?? Any way round this?
  7. Kayleigh

    Solved Undo Updates on a Subform

    Maybe if I would save the old vals as an array in the form - afterUpdate, I could revert to these values if undo is called?
  8. Kayleigh

    Solved Undo Updates on a Subform

    Would unbound controls work? There are only 8 text fields on the subform...
  9. Kayleigh

    Solved Undo Updates on a Subform

    Yes I thought the same. That is why I am exploring other approaches.
  10. Kayleigh

    Solved Undo Updates on a Subform

    I know there are loads of suggestions on this problem but I am looking for a simple solution to implement. The structure of the forms are very basic (both single forms): Parent form = details of Tenancy Child form = details of Tenant I would like to have a cancel button on parent form which...
  11. Kayleigh

    Table structure

    So you are saying to have two parallel tables and the connection between education and certificates is indirect but I would like to associate a certificate with an education record. Would it be denormalising the data to have 2 foreign keys in certificates - to education, as well as to staff?
  12. Kayleigh

    Table structure

    I am considering the best way to structure one component of my DB. The scenario is that each person has certificates so there is a table for people and another table for certificates. However we also have the education details for some people which we record in another table with foreign key to...
  13. Kayleigh

    Solved Subform not visible for new record

    Wow you are right! It was just the allowAdditions property.
  14. Kayleigh

    Solved Subform not visible for new record

    Hi I have a subform which appears on one tab on a form. However strangely although it is always set to visible, it does not appear when form goes to a new record. I have tried commenting out all the code but no success. I have tried debug.print me.subform.visible and it is always 'True'. Any...
  15. Kayleigh

    Solved Convert to SQL-format date

    Seems to be working with to update with Iif statement when I format as above. Thanks for pointing me in the right direction :)
  16. Kayleigh

    Solved Convert to SQL-format date

    I've given this a try instead of date(): Format(Date(),"mm/dd/yyyy hh:nn AM/PM") and it has worked successfully! So I will try with the calculated field now...
  17. Kayleigh

    Solved Convert to SQL-format date

    Okay I've done as you specified - same field only one record to change and this is error that restricts query execution.
  18. Kayleigh

    Solved Convert to SQL-format date

    I understand. The DB I'm working on is for test purposes so it is okay to overwrite the data. Not so familiar with the way SQL server works. I've added new dummy column to table but its not updating in my FE - even after I've closed and re-opened both. What do you advise?
  19. Kayleigh

    Solved Convert to SQL-format date

    I've tested the IIf as a field on its own and it will evaluate correctly - only displaying at the SQL date format.
  20. Kayleigh

    Solved Convert to SQL-format date

    Also I've checked the design view but it didn't offer any insight - just date/time like other fields.
Back
Top Bottom