Recent content by cogent1

  1. C

    If-Then-Else question

    not as long as COBOL though..... ;)
  2. C

    What is the wildcard?

    If it is a parameter query, use the following expression: Like "*" & [your parameter] & "*" If the parameter is left blank, all records will be returned.
  3. C

    calculate a distinction between two values

    Do you mean that you want to calculate the difference between successive readings of a counter on a machine? So if the morning reading is 100,the afternoon reading is 300 and the evening reading is 550, you want the query to return 100,200, 250? Please confirm.
  4. C

    Calculated Control

    How it's done... Create a query with an IIf expression. jfgambit's query is: SELECT tblHours.Date, tblHours.Associate, IIf(Sum([Hours])>10,"There are too many hours",Sum([Hours])) AS Hrs FROM tblHours GROUP BY tblHours.Date, tblHours.Associate; You may need to change the field names to...
  5. C

    Calculated Control

    Meet me halfway... How is your calculation derived? What do you want to display if the calculation results in a sum >10 hours?
  6. C

    primary key

    don't think it's possible... it appears that this can't be done using a saved import spec. You can't even manually add an autonumber field to the spec as far as I can see. Strange, eh? It's easy enough to add the primary key manually after the import though, or use a simple procedure to add it...
  7. C

    Delete query

    Join the two tables on both fields that have to correspond. Do this using the query grid for ease. If you want to use SQL switch to SQL view and paste into your code.
  8. C

    Can't Open A RecordSet - Please help!

    I think your code would fail much sooner if it was a reference problem. I believe it is the SQL string that is causing the error. What does your debug statement return?
  9. C

    Apply filter automatically

    If you open the table's recordset, you can use a Filter by Selection command from the toolbar to show e.g. All users with last names beginning with S. You can toggle between the filtered records and the full recordset. Access remembers the filter, and if you use an ApplyFilter to the recordset...
  10. C

    Query, Form

    To get you going and give you some experience, I suggest you do it this way to begin with. You can easily switch over to another method later without changing your table structure in any way. First, create a query to select all Baseball records from your table. Use the Query Wizard to select...
  11. C

    Query, Form

    There are many ways to accomplish what you want, but most of them involve a knowledge of things like combo boxes or simple event procedures. As you are a "newbie", you may not feel comfortable with these. To do what you require in the simplest, though not most elegant way, requires two queries...
  12. C

    Query, Form

    You have to base your form on a query which returns different records depending on which button (or better, which option in an option group) is selected. First , we need to know how your table differentiates whether an entry relates to soccer or baseball. Besides, why have the results lumped...
  13. C

    importing dbf files

    One way would be to have a command button on your main switchboard (assuming you have one). The OnClick of the button would call a module which you would imaginatively name as IMPORT. IMPORT would first delete the old data in your holding database, import the new data, then re-export it to your...
  14. C

    importing dbf files

    This is an extract from the help file for the Transferdatabase Action: "If you select Import in the Transfer Type argument and Table in the Object Type argument, Access creates a new table containing the data in the imported table. If you import a table or other object, Access adds a number to...
  15. C

    Help Help Help

    Put a message in square brackets in the criteria line of your query, something like: [Enter Yes for closed issues or No for open issues:] In design view, go to Menu item Query /Parameters and enter the same text in the parameter window and select Yes/No as Data Type. The query won't work as...
Top Bottom