Search results

  1. C

    Prevent duplicate entries of a field on an input form

    check I've got the table and field names right...
  2. C

    Report based on filtered form

    could you not just set the report's record source to be the same as the form's record source??
  3. C

    Prevent duplicate entries of a field on an input form

    Try this, and let me know if it works? Hoping I've picked up your field names etc properly... Private Sub PO_No_BeforeUpdate(Cancel As Integer) Dim CheckPO As Variant CheckPO = DLookup("[Purchase Order Number]", "Orders", "[Purchase Order Number] = '" & Me.PO_No & "'") If Not...
  4. C

    Preventing future date use

    it's always the obvious thing that is the most difficult to spot... glad to be of service!
  5. C

    Preventing future date use

    Just to check : what is the field type? It IS Date/Time, isn't it? If it is, then this should work: If Me.DOM.Value > Date Then MsgBox "Please enter a Valid DOM", vbInformation, "Check again !!" Cancel = True End If
  6. C

    'Like' function

    I also remember 4-digit phone numbers :) My mum and dad's was 3210.... our local GP was 3120.... it was a cool number to have but we changed it after getting a large number of misdials at all times of day and night, and a large number of calls from toddlers!!
  7. C

    Data from two tables

    erm.... what is the match? I think your sample data needs looking at! - Your ProductLocalName in table one is ProductLocalName1, ProductLocalName2 - Your Product in Table2 is Supa1, Supa2, Supa3... etc and in Table 2, you've got more than one Supa2 against Europe as the market - how is it...
  8. C

    Appending to a calculated field's data

    In the control on the report, try using =Division & " " & "Division" or =Division & " Division" but make sure the controlname on the report isn't Division or it won't work! Just rename the control to something else, eg txtDivision
  9. C

    error when creating relationships

    The fields must be of the same type - both numbers, or both text - or you can't link them. What most people would do is add an ID field to the therapist table and then link the TherapistID (PK) from the therapist table to another TherapistID (FK) field in the appointments table - in other...
  10. C

    Report Output to PDF File name

    :) but I'm not a man, lol..... well, not the last time I looked, anyway!!
  11. C

    Report Output to PDF File name

    I found this... Remove illegal characters from filename (#filenames) Remove illegal characters from filename (#filenames) Function ReplaceIllegalChars(Filename As String) As String 'leo.heuser@get2net.dk, 5. August 2001, programming Dim Illegal As Variant Dim Counter As Long Illegal =...
  12. C

    Rounding function to always round UP in MSAccess?

    marvellous, thank you :)
  13. C

    Rounding function to always round UP in MSAccess?

    Simple one, really.... I know the Round function exists in MSAccess, but what I need is one that will always round up, and never round down! Easy enough in Excel, but I can't find one in Access?
  14. C

    Question Help with using Excel linked tables

    ok, will have a root around and see what I can find.... ty
  15. C

    SubForm Sort Order

    the sort should be specified within the query / select statement of the subform's Record Source.... well, that's how it works on mine, anyway! Make sure you hove removed any other sorts on the subform
  16. C

    Question Help with using Excel linked tables

    !! WARNING - LONG POST!! I'm having a few issues with a database I've set up.... Each week I receive downloaded data in Excel - this is supplied to us in a pre-defined format from our client(s) (the data is actually timesheet information for Contractors) When we receive the data, it...
  17. C

    Form without any navigation but only record to enter

    Setting record selectors to no should get rid of the grey panel Set Allow Additions back to Yes is you want to be able to add records using the form
  18. C

    Command button to save cahnges on the record

    quick question: what is the Add Record button supposed to do? - add a new record or - update an existing record or - save the record you've just entered as a new record And likewise, what should happen when you click refresh?
  19. C

    Need help with average records per hour desperately.

    Even Simpler then SELECT Count(mytable.somefieldorother) AS NewRecords, Min(mytable.timestamp) AS Start, Now() AS [End], ([End]-[Start])*24 AS Hours, Count([somefieldorother])/[Hours] AS [Per Hour] FROM mytable; OR SELECT Count(mytable.somefieldorother) AS NewRecords...
  20. C

    Need help with average records per hour desperately.

    ok, so to clarify: are you looking at ALL the records in the table 'ever', or just the ones between a certain start and end time?
Back
Top Bottom