Search results

  1. Mile-O

    Adding maximum amount of login attempts

    Look into Static variables.
  2. Mile-O

    password to forms

    Perhaps I will. Would need to detach it from lots of other stuff, etc. Plus comment it for an example, etc.
  3. Mile-O

    User login form with different levels of access?

    Rather than all this password stuff, just authenticate based on their Windows logon (username). So, two tables: tblUsers UserID [Autonumber, PK) WindowsID Forename Surname UserLevelID [Number, FK] etc. tblUserLevels UserLevelID [Autonumber, PK) UserLevel Then a query that joins these two...
  4. Mile-O

    Dlookup multiple criteria not working

    http://www.microsoft.com/resources/msdn/goglobal/default.mspx?submitted=0425&OS=Windows 7 Does the Microsoft Help on the Format() function - in Estonian - use the . or / method? Seems it's somehow down to regional settings.
  5. Mile-O

    Dlookup multiple criteria not working

    Hmm, I forgot the # delimiters, although I would expect to see a Type Mismatch error rather than a Syntax Error. This should fix that part: [Date_Added] = #" & Format(CDate(Replace(Me.Date1,".","/")), "MM/DD/YYYY") & "# And [Shift] = " & Me.Shift) If it does, then the issue now appears to be...
  6. Mile-O

    password to forms

    Your issue is: OpenForm.sales orders Should probably be DoCmd.OpenForm "Sales Orders" Basically, it thinks Sales is a method of the OpenForm command and Orders is a parameter you are passing to it.
  7. Mile-O

    Dlookup multiple criteria not working

    Reading through all this again the issue is likely lying with this dot-based date represenation. While you say that . is the Estonian format (over /), we are seeing that / works in the Immediate Window. People type in 02.04.2015, which is generating a Syntax Error as Access doesn't recognise...
  8. Mile-O

    password to forms

    Perhaps a bit more complex, but one thing I do i: 1) Have a User table. One of the fields in this will be the user's Windows ID 2) Have a query on the User table, where the criteria is based on the Windows ID (see fOSUsername() function - google it!) 3) Create a User class with properties that...
  9. Mile-O

    text box to show time taken

    Okay, it's solved, but how about this as an alternative solution? It uses a class module - so if you want to time multiple things throughout your database you need only code it once - and can return the elapsed time in hours, minutes, seconds, or milliseconds. Basically, create a new Class...
  10. Mile-O

    Help with Queries (Macro)

    Listbox showing all users and its multi-select property on. Then you can loop through its ItemsSelected property and add users to some other list.
  11. Mile-O

    Dlookup multiple criteria not working

    Can you post a screenshot of your table '249_1_CHours's design view? Also, what on earth does that table name imply?
  12. Mile-O

    Dlookup multiple criteria not working

    Surplus " :o [Date_Added] = """ & Me.Text27 & """ And [Shift] = " & Me.Text29)
  13. Mile-O

    Change font color on ALL form controls on "Got Focus" and "Lost Focus"

    Re: Change font color on ALL form controls on "Got Focus" and "Lost Focus" This is the method that I (would) use. I use a variation on it for changing the backcolor property of textboxes and comboboxes, so that the user can see what item the tab is at and needs data input.
  14. Mile-O

    Help with Queries (Macro)

    I would only use them on lists that were strictly defined and unlikely to change, such as Months or Days of the Week. Everything else I would drive through a database. This method you can take future development out of the equation by, for example, building an administration form that allows...
  15. Mile-O

    InitialiseEvents problem Plz Help

    For anyone looking into this, here's the discussion that the code has come from. http://www.access-programmers.co.uk/forums/showthread.php?t=185030
  16. Mile-O

    Help with Queries (Macro)

    Perhaps something like this. tblEmployees EmployeeID (PK) Forename Surname Email StartDate EndDate ClearDate NOTE: Active as a Yes/No may be okay, but you can get more information from a Date. For example, if the EndDate has no date then the person is active. But with dates, you can query on...
  17. Mile-O

    Dlookup multiple criteria not working

    So: "[Date_Added]= " & Me.Text27 & " And [Shift] = '" & Me.Text29 & "'") You have a field called Date_Added, and a treating it numerically. Yet the output is 4.02.2015 , which looks like a Text field as it's not a date (slashes not dots make dates!). Then you say Shift is a Numeric field, yet...
  18. Mile-O

    case-insensitive text

    If Me.Business = "TYPE 1" Or "TYPE 2" And Me.Case = "Sent Email" Then Should be: If (Me.Business = "TYPE 1" Or Me.Business = "TYPE 2") And Me.Case = "Sent Email" Then Note the brackets to group the OR together, otherwise your logic would be like this Me.Business = "TYPE 1" OR Me.Business...
  19. Mile-O

    case-insensitive text

    You could just do this: If StrConv(Me.Business, vbUpperCase) = "TYPE 1" And Me.Case = "Sent Email" Then
  20. Mile-O

    if user selects wrong value, display message

    It could be, but that would be counter-productive. Ideally you would not want to do the rework on the database each time a new business or whatever, was added. Going by code, you would then have to hard code in the new business each time. By putting the data in a table - and, after all, it is a...
Back
Top Bottom