Search results

  1. D

    Combo box not refreshing

    Can you upload a screenshot of the form?
  2. D

    Combo box not refreshing

    On the forms VBA you'll need to trigger a requery for the control of the whole form. Something along the lines of; Me.Combobox.Requery Add this to the AfterUpdate event of whatever it is you're using to change the record.
  3. D

    Recording user log-ins

    You'd want to insert the "INSERT INTO" SQL string after the erm.... If Me.txtPassword.Value = DLookup("Password", "tblUsers", "[UserName]='" & Me.cboUser.Value & "'") Then strUser = Me.cboUser.Value 'Set the value of strUser declared as Global Variable strRole =...
  4. D

    Recording user log-ins

    I just put the list box in there to show it was working. Must dash, there is lunch to be had.
  5. D

    Recording user log-ins

    Try the attached, should help
  6. D

    Recording user log-ins

    You'll need a new table with; UserID, a date/time field and an In/Out field. Make the date field's default value =Now(). The In/Out field could be a 3 digit text field. strSQL = "INSERT INTO tblUserLog ( UserID, InOut )" strSQL = strSQL & " VALUES ( " & [TempVars]![CurrentUserID] & ", 'In' ); "...
  7. D

    Maximum number of subfolders / directories

    More of an answer I ever expected, not what I was after but thanks for the insight. I'm using a little VBA to check for or create a folder for each record. The dir Path won't ever be that long. I was just after a number, 100, 500, 1000, 10,000?
  8. D

    Maximum number of subfolders / directories

    Got to the stage where I'm creating and accessing folders via my db. Is there a number out there for what is deemed a sensible maximum number of subfolders in a folder? Cheers, Dan
  9. D

    Return ID for newly appended record

    It's OK, got it! :) '" & NewCompanyID & "'
  10. D

    Return ID for newly appended record

    Just got back round to this. Can anyone help me get the resulting value into the SQL string? The below is not working, ED it requests that the value is input manually. 'Gets CompanyID of newly appended company Dim NewCompanyID As Long NewCompanyID = DMax("CompanyID", "[tblCompanies]", "UserID...
  11. D

    Only load records by selected date

    This helps prevent spamming. Do you still need help?
  12. D

    Return ID for newly appended record

    Thanks jdraw, much appreciated.
  13. D

    Return ID for newly appended record

    Ahh of course. Thanks. I've been struggling today. It's an autonumber at the moment. Should I make it a priority to change this?
  14. D

    Auto populating fields within tables

    If the date entry for the Tests is via a textbox you could add something like this to the AfterUpdate event property Private Sub tboTestDate_AfterUpdate() TempVars.Add "TestDate", tboTestDate.Value DoCmd.SetWarnings False DoCmd.RunSql "INSERT INTO tblworkdone ( WorkDate ) VALUES ( " &...
  15. D

    Auto populating fields within tables

    Ahhh, kind of with you here. Personally I set my date fields default value to =Now() so every time a new record is added it adds the date automatically. Does this help? There are other options if it's no use.
  16. D

    Auto populating fields within tables

    How is the data in the tables related? You shouldn't really be storing duplicate values across tables. If you want the value to appear alongside data from another table I'd recommend creating a query that combines the data from both tables.
  17. D

    Return ID for newly appended record

    How can I return the ID for a newly appended record without using a LastRecord type function? I'm not even aware of exactly how this is done yet. I feel if I request the ID of the last record added it could cause problems later down the line with multiple users and I would like something...
  18. D

    Fix the homepage

    It's looking rather exotic at the moment; "��=ks������f;��6������IN|��n�6����P���x���ò�ɿ������.r�V��ؙi�t�dE� � �����g'����`�.߼�|�~8��sexdyqh1���#K��/U ���Cs� x��������g��xҿf���� T=� � B�;�q�k��0�WUد���Z�aZ�2�D��tB�^̎GD{%���?�aMØ�}>G�+"'�A,�o1G���<���$f3(�ﲾ�Y��...
  19. D

    Criteria to show all records

    Thanks for the insight, the intention is that the database will be pretty big. The records in question are enquiries at the moment so at some point in their life they will be marked as dead and not returned.
  20. D

    Saving ONE TIME calculation to Table

    .Requery????
Back
Top Bottom