Search results

  1. W

    Make completed records read only?

    Is there a way to make some records in a table read only? Thanks, Dave [12 days until retirement!]
  2. W

    syntax help, please?

    I want to take a field from an open form and change a value in the underlying table based on that date- Table.tblClassSurvey.period.setvalue=Forms!frmTabSurvey!CompletionDate The form field is a ShortDate The table field is just the yyyy-mm datepart Thanks, [Down to 2 paydays left before...
  3. W

    Horrible performance with additional users in 2007?

    I finished my work [I thought] on my latest 2007 database. As soon as a second user fired it off response time went WAY beyond usable. I split the database with the BE on the network and installed separate copies on three local desktops. Performance didn't change one iota. When a second user...
  4. W

    Username in query??

    Trying to capture the user name in an append query- using RB: Environ("UserName") in a query row errs out Help, Please? Thanks, Dave
  5. W

    Display the very last record created

    I need to open a form and display the last record created. I tried this: DoCmd.OpenForm "frmLocalRecords", , , "TrackingNumber=max()" but all it does is crash the application... any help, please? Thanks, Dave
  6. W

    Open form to specific record?

    I need to open a form to the newest record - the largest TrackingNumber. What is the cleanest way to do this? Thanks, Dave
  7. W

    2 requirements for if statement?

    The syntax I asked about here in this forum, for a filter, won't work with my if statement- What I am trying to do is run code if the case status is any status except closed OR with no date in the date completed field. This code won't run correctly: If "[CaseStatus]<>'Closed' or NOT...
  8. W

    Add new text to existing text in same field?

    I have a memo field on a form. I want to write certain events to that field, either on that form or into the underlying table. I want new event text added to that, preserving the data that may or may not be there. example: Issue opened on 5/5/2009 Isue assigned on 5/9/2009 Issue worked on...
  9. W

    3 filter syntax?

    This won't run: DoCmd.ApplyFilter , "[casestatus]<>'Closed' AND [TickleDate]<>null and [Assignedto]= '" & Environ("UserName") & "'" Help. please? Thanks, Dave
  10. W

    Applying 2 filters syntax?

    This code won't run: DoCmd.ApplyFilter , "[CaseStatus]<>'Closed' AND [TickleDate]<>null" I want all CaseStatus that are NOT closed and all tickle dates that are NOT null Help, PLease? Thanks, Dave
  11. W

    Incorrect record???

    The code below will not open the correct record- that is, the record that matches the tracking number. It runs agains the very tracking number instead. If I put this code on a button and run it after the record loads it works correctly. Help with the code, and a little VBA lesson, please...
  12. W

    Change command button color if underlying form has data?

    I have a form with about a dozen command buttons that open forms. My customers are asking if I can make the command buttons a different color if there is any data in the form the command button opens. They would like the color to remain changed forever once data is entered. Any suggestions...
  13. W

    Filter for a date range on a form

    What needs to be changed to get this code to work? No error message, just doesn't filter the record on the form I want to filter for just those records with the tickle date between today and 10 days from now... Thanks, Dave DoCmd.ApplyFilter , "[tickle date]= between today() and today + 10"
  14. W

    Clearing checkboxes

    I am trying to clear the checkboxes [one for each record] when I close a form so it opens next time with none of them selected. I have tried 5 or 6 different ways to do this. =0 =Null ="" =false =no The most recent, below, doesn't work, either. No errors, just does not clear them. Private Sub...
  15. W

    VBA code for two-item filter?

    My code for an option group [below] works fine. I now need to to another option group that checks both CaseStatus and assignedto. Some help with the if statement to require both matches? Thanks, Dave Private Sub Frame22_AfterUpdate() Frame33 = Null If Frame22 = 1 Then DoCmd.ApplyFilter ...
  16. W

    Creating a second key number field for a form

    I just finished a customer demo of a new application. My customers asked me to build another form reached by clicking a command button on the main form. The two forms (and underlying tables) are tied via a tracking number (autonumber) field. They are planning on generating notes on this...
  17. W

    match records by tracking number in two forms

    Using Access 2007 I have two tables/forms that are linked by the field 'trackingnumber.' When I have the main form open I call up the second form via command button and need to have it open the record that matches the main form. Thanks, Dave
  18. W

    find record on form2 that matches the record on form1?

    Everything I have tried so far just changes the ID of the record on form 2... I just want the matching record :) Thanks
  19. W

    Access 2007- Turn on Calendars for all date fields?

    I thought I saw a 'display calendar for date fields' command and now can't find it. I have tons of date fields and would prefer not turning them on all over in the database. Where is this hiding from me? Thanks, Dave
  20. W

    Null Query

    I have a select query that works perfectly. If the query is empty I want a messagebox that tells the user there is no matching record. I can't seem to get the code to do this. I have been working with the NZ() function but can't make it work... Can someone get me started? Thanks, Dave
Back
Top Bottom