Search results

  1. W

    Hide the Switchboard form while a Report is Loading

    I'm using Access 2003. I have a report that uses a form to collect parameters before generating the report. Here's the VBA code in the report's Open event: When the DoCmd.Maximize command fires, the report does indeed maximize; however, the Switchboard form also displays in the top left...
  2. W

    Getting Grand Total with Nested Reports

    I am using MS Access 2003. I have a report in which the highest-level detail band contains a nested Access subreport, inside which is a numeric field in the detail band of the subreport. I would like to generate totals of all of these numeric values through the entire report, to be reported in...
  3. W

    How to Get a Combo Box to Refresh

    Hi, Bob, I must be doing something wrong, because when I add your code to the After Update event, I get the following error: I tried this code in the After Update for the field, then the record. Same error both times. Thanks. Wayne
  4. W

    How to Get a Combo Box to Refresh

    I'm using Access 2003. I'm trying to make a combo box refresh in a given form after making changes to the cb from another form (while the original is open). So here's the sequence: 1. User opens main form containing cb control. 2. User adds or changes an entry in the table feeding the cb...
  5. W

    Cannot Update When Using a Query for a Form's Record Source

    Not sure how that will help me. I'll give a few more details. Form frmLoading (see attached) currently displays the calculated field "Amount USD" by pro-rating the "Actual Amount" on the parent record (or the "Estimated Amount" if no "Actual Amount") by the Tonnes on the current record...
  6. W

    Cannot Update When Using a Query for a Form's Record Source

    I'm using Access 2003. This might be a bonehead question, but is it possible to use a multi-table query for a form's Record Source and still be able to update records in one of the tables? I have the following query as the Record Source for a form: SELECT tblLoading.LoadingID...
  7. W

    Detect Whether a TextBox Has Become Blank

    You make a good point. Actually, I have it coded so that if the user selects anything from the combobox controls, I disable the textbox until they first blank out the combobox. So I think I'm OK there. Thanks for the reminder. I'm gonna take another look at my code to ensure that these cases...
  8. W

    Detect Whether a TextBox Has Become Blank

    This works great! And I appreciate your pointing out why the .Text property is so important. (I prefer to understand how the code works.) Thanks! Have a great day! Wayne
  9. W

    Detect Whether a TextBox Has Become Blank

    I'm using Access 2003. Is there a way to detect whether a user has begun typing in a textbox? Or whether, after typing something into it, they have erased what they have typed? I have a Search form with a criteria value of type text that the user enters into a textbox. I also have other...
  10. W

    VBA Code to Detect Whether a Form is Open

    Works great. And it's short and to the point. Thanks.
  11. W

    VBA Code to Detect Whether a Form is Open

    Worked great! Thanks. Wayne
  12. W

    VBA Code to Detect Whether a Form is Open

    I'm using Access 2003. Sorry if this is a dumb question, but is there VBA code to detect whether a given form is already open? (I've googled for a while, but I can't seem to find the answer.) Thanks. Wayne
  13. W

    SetFocus to a Specific Field on a New Record

    This worked. Actually, based on your suggestion, I just added the following command to the After Update event and it fixed all: DoCmd.GoToRecord , , acNext Thanks for the help! Wayne
  14. W

    Negative Number Format for Decimal or Double

    Thanks! That worked. I think I understand the first two parts of the format string (pos number format; neg number format). But what do the last two pieces represent (;;"0.0")? Wayne
  15. W

    Negative Number Format for Decimal or Double

    I'm using Access 2003. In a form I have a textbox control that displays numbers in Standard format with three decimal places. I'd like to be able to display them with a negative number format (displaying parentheses rather than the negative sign): Unfortunately, I cannot seem to get it to...
  16. W

    SetFocus to a Specific Field on a New Record

    Hi, Michael, I think I understand what you're saying, but still not quite sure how to implement. My form is actually a subform that's nested two levels deep. Because the subform needs to talk to the parent forms, I need to requery both the parent and grandparent forms whenever a row is...
  17. W

    SetFocus to a Specific Field on a New Record

    I'm using Access 2003. In a form's AfterUpdate event, I want to know whether the row that was just updated was a new record. I've tried testing the .NewRecord property, but that doesn't work. (Apparently, by the time we're in the AfterUpdate event, it's no longer considered a new record.) Is...
  18. W

    Prevent Duplicates in a Field with Form-Level Validation

    Beautiful. It works! Thanks for your help. Wayne
  19. W

    Prevent Duplicates in a Field with Form-Level Validation

    I'm using Access 2003. I'd like to prevent users from entering a duplicate Claim Number in a field. (That is, if the entered Claim Number is already in the table, block it and throw an error message.) I know I can prevent that by creating a table index on that field with No Duplicates...
  20. W

    SetFocus to SubForm Not Working

    Actually, I started out with a Recalc, but some of the dependent calc fields were not updating correctly, so I had to resort to a full Requery.
Back
Top Bottom