Search results

  1. A

    can't install or run Access 97 on Win XP SP2

    I have a genuine Microsoft CDs and keys, one with Office 97 Small Business Edition, and the other with Access 97 (these are both the full version, NOT upgrades). As I got new machines over the years (both Windows 98 and Windows XP SP 2), I installed the software from both CDs without incident a...
  2. A

    disable form record scrolling final solution

    Depending on how the form's .Cycle property is set, the user may still be able to scroll through records using the keyboard. You can limit the user to only a single new record regardless of that setting, by making the following settings in the Form_Load event procedure: .AllowAdditions = True...
  3. A

    phantom row in listbox

    I have an Access 2003 form which uses three unbound listboxes, all of which are populated by queries on the fly. The first one displays records from a parent table, and the other two display corresponding records from two child tables. As the selection is changed in the first listbox, the...
  4. A

    3D Database Concept

    A few points to consider here (based on U.S. law): 1. The_Doc_Man stated that "The same principles apply to copyright law, patents, and trademarks." That statement is somewhat misleading - while copyrights, patents and trademarks are all elements of intellectual property, and many common...
  5. A

    why can't I save changes after an error?

    Pat, there are no timers anywhere in the database. And I'm already doing what you suggest (stopping the code, making the needed changes, and attempting to save those changes), but it just won't let me save ANYTHING until both Access and the VB editor have been shut down and re-started.
  6. A

    why can't I save changes after an error?

    I previously posted this in one of the other forums, but now believe this to be of a more general nature, and am still without a satisfactory explanation or any workaround: I'm working on a new database with Access 2003, using the 2002-2003 file format. While debugging a VBA code module in the...
  7. A

    Access won't let me save

    Thanks, llkhoutx and Banana, but the Open mode setting makes no difference - the same thing happens regardless of whether it's set to Exclusive or Shared. And this has nothing to do with live and backup copies of the database (backups are made and preserved at appropriate intervals) - the...
  8. A

    Access won't let me save

    I'm working on a new database with Access 2003, using the 2002-2003 file format. While debugging a VBA code module in the VB editor, whenever I get a runtime error something strange happens - I correct the code and attempt to save my changes, and Access displays the message "Microsoft Office...
  9. A

    If function in access

    Then I'd take a look at the data the query is returning, so you can see the actual values of the fields in question.
  10. A

    If function in access

    Are you sure that [minoftime] and [national standard] are both present in the table(s) the query is based on, and that they are spelled correcrtly?
  11. A

    If function in access

    You could put something like this in the query's SELECT clause: IIf([SwimmingTime] = Forms!MyForm!txtSwimTime, "It matches", "No match") AS SwimText which would cause the query to return a field called SwimText, with a message indicating whether or not each record's SwimmingTime field was...
  12. A

    query hangs in design view

    I maintain a mature Access 97 application, divided into front and back ends. A report is based on Query2, which is in turn based on Query1. Query 1 is the main data table with outer joins to about 2 dozen lookup tables. Query 2 applies selection criteria from a user form to generate the...
  13. A

    Perform task mid-sub proceedure

    On the import clients form, place a hidden text box. In the duplicate clients form, set the value of that text box before exiting the form, with the specific value indicating whether or not you want the import clients form to continue processing. Back in the import clients form, test the value...
  14. A

    Assigning String

    Try this: rst2.Find "[AccountNum] = '#" & Me.AccountNum & "# '" I'm assuming that the field rst2.AccountNum contains a string value consisting of a pound sign, followed by an account number, followed by another pound sign, followed by a space. You need to embed the apostrophes when...
  15. A

    Perform task mid-sub proceedure

    There are two problems with the way you have it: 1. Using the IF THEN ELSE construct, Access will always open the form OR execute the subsequent code, but never both. 2. Since you are opening the form asynchronously, the code following the IF THEN ELSE block will run immediately, which is...
  16. A

    Omit ")" at the end of a sting

    Try this: IIf(Right$([time], 1) = ")", Left$([time], Len([time]) - 1), [time]) Assuming that [time] refers to a field in a table or query, or to a text box on a form or report, it's good practice to not re-use system-defined names, which in some contexts may cause confusion - e.g., there is an...
  17. A

    bogus error message 3125

    Thanks, pdx_man. All objects in the database are owned by dbo. This ended up being one of those cases where the problem gets resolved, but you never know what caused or what fixed it. I ended up deleting the three new tables I was creating in this batch, and all of their stored procedures...
  18. A

    the save operation failed

    Try repairing and compacting the database. If that doesn't resolve the problem, create a new empty database, import all of the objects from the old database into the new one, manually set the startup options on the new one (they cannot be imported), delete the old one, and finally re-name the...
  19. A

    Programatically Export Access Data to DBF

    Check the online help for the TransferDatabase action and the TransferDatabase method of the DoCmd object, either of which will export data from Access to various other formats, including .dbf files. You don't even need to bother with a temporary table - you can simply export directly from a...
  20. A

    Me again...

    To use the value of a form control as a query criteria, refer to it like this: [Forms]![MyForm]![MyControl]
Top Bottom