Search results

  1. T

    Duplicates in Primary Key

    Okay. I need to slow down. The field is not autonumber. It is a Number field which is indexed with No Duplicates allowed. It is also the Primary Key. My sincerest apologies. The issue is still the same, however. Even though no duplicates are allowed occasionally duplicates get in. They are...
  2. T

    Duplicates in Primary Key

    MajP - I never reseeded. I only did a CR. I tried using the code below to reseed but It's giving me the errors listed below. CJ_London - I am using an Insert query in VBA from a front end db to a back end where the table resides. Here's my reseeding code: The data type of Trans_ID is Long...
  3. T

    Duplicates in Primary Key

    I just did a compact and repair. Wouldn't reseeding change the autonumber of each record? That would be disastrous.
  4. T

    Duplicates in Primary Key

    I have a table that has an autonumber field (Indexed, No Duplicates) set as the primary key. Every now and then the table will get corrupt because Access will allow a duplicate entry. I've read the Allen Browne articles so I know how to fix this - but does anyone understand how this can happen...
  5. T

    Can't get Proper Week Start Date

    DBGuy - you are correct. My mistake. But then it returns 2. TheDate Expr1 1/1/2030 2 1/2/2030 2 1/3/2030 2 1/4/2030 2 1/5/2030 2 1/6/2030 2 1/7/2030 2 1/8/2030 2
  6. T

    Can't get Proper Week Start Date

    Mark - the query is perfect. Thanks! I already wrote a function that works and accomplished what I need but I knew there had to be a more efficient way.
  7. T

    Can't get Proper Week Start Date

    vbMonday is not recognized in query design. So, I replaced it with 1 (Monday). It returns 3. TheDate Expr1 1/1/2030 3 1/2/2030 3 1/3/2030 3 1/4/2030 3 1/5/2030 3 1/6/2030 3 1/7/2030 3 1/8/2030 3
  8. T

    Can't get Proper Week Start Date

    Guus2005 - I don't understand what you mean. Your suggested code returns "3" when I run it. Plog - Yes 1/3/2027 is week 53 of 2026. I'm sure my query just needs a bit of tweaking but I can't seem to get it to recognize that Monday is the start of the week although I don't have that problem with...
  9. T

    Can't get Proper Week Start Date

    Our business week starts on a Monday. I am using the following query to return the year, the week number, the date, the day of the week and the week start date: SELECT "2027" AS TheYear, DatePart("ww",[TheDate],2,2) AS TheWeekNo, t_Calendar.TheDate, t_Calendar.TheDay...
  10. T

    why is this place so republican?

    Pat Hartman for president!!
  11. T

    Listbox Question

    Brilliant! Thank you very much! I only had to use a very small snippet of code (see below). I did have to change SelectedID to string however. Also had to comment out the Exit For statement. '**************************** Dim varItm As Variant Dim SelectedID As String Dim i As Integer...
  12. T

    Listbox Question

    I have frm_NewClient which adds a new client to the database. The controls are: txt_Client_Id txt_FirstName txt_LastName lst_Payers (This is a multiselect list box that displays different insurance carriers) My insert query works perfectly. I am able to get the selected items from the listbox...
  13. T

    Table Gets Corrupted

    Thanks for responding Larry. Every user has their own front end copy. I know it is corrupt because I get calls from my users complaining of the same error message that always indicates corruption - and then shortly after that I get the classic "Your file may be corrupt" message. I agree with...
  14. T

    Table Gets Corrupted

    I have a split database. Occasionally I will need to compact and repair the back end. The corruption is always in the same field of the same table. The field is called "Comments". It is a Long Text field. When it is corrupt it contains hash marks ######## inside of it. I simply export the table...
  15. T

    Form is Larger in Form View than in Design View

    Thanks Gemma. I appreciate you taking the time to show me this!
  16. T

    Form is Larger in Form View than in Design View

    CJames & Gemma - Thanks so much. My dumb mistake on the Maximize command. Anyway, both of your codes work perfectly. Thanks so much! I appreciate your help! Just FYI. I did put Gemma's code in the open event of the dashboard form.
  17. T

    Form is Larger in Form View than in Design View

    CJames & Gemma - Thanks so much. My dumb mistake on the Maximize command. Anyway, both of your codes work perfectly. Thanks so much! I appreciate your help! Just FYI. I did put Gemma's code in the open event of the dashboard form.
  18. T

    Form is Larger in Form View than in Design View

    @CJames - The form opens exactly the size I want it when opened alone. The problem is when it is opened via the login form (frm_Login). Only then does it take up the entire screen. So, when I implement your code, it opens with the MoveSize settings - but when opened via frm_Login it still takes...
  19. T

    Form is Larger in Form View than in Design View

    Thanks Gemma. I tried all of the below and none of them solved the problem. DoCmd.RunCommand acCmdSizeToFitForm DoCmd.RunCommand acCmdFormView DoCmd.RunCommand acCmdSaveLayout DoCmd.RunCommand acCmdSizeToGrid DoCmd.RunCommand acCmdSizeToNarrowest
  20. T

    Form is Larger in Form View than in Design View

    I've had this problem before but was always able to resolve it. However, this time - no luck. I have a form called frm_Dashboard. It is sized the way I want in both design and form view. However, when calling it from frm_Login it becomes much bigger and takes up the entire screen. From...
Back
Top Bottom