Search results

  1. Dennisk

    Variable field name in query

    I would turn it on its head and have the months as columns, as these can be fixed i.e. Jan - Dec then each year's data would be on a separate row which can grow and grow.
  2. Dennisk

    Export all tables to a spreadsheet(s)

    look up DoCmd.TransferSpreadSheet. This will do the job for you.
  3. Dennisk

    query to assign row number?

    I'm not quite sure what you are after but If you require to sort and renumber this can be achieved in a query. You will require a sub query. Here is the basic outline. it uses the Authors table wich consists od an numeric ID and Author name Non Unique Sequence SELECT (SELECT count(au_id) FROM...
  4. Dennisk

    Question Text File Import larger than 3 gig

    Although the upper limit is 2Gb. You can link any number of tables. What i would do is develop a sub to read the whole file and maintain a line count. develop a sub to read x number of records and write them to another file. then a sub to read from x+1 to end of file again writing out the...
  5. Dennisk

    When to use code

    what you can do is to trap the error number so in the on error routine IF err <> 2046 Then Msgbox err & " " & err.Description endif Resume yourExitHandler
  6. Dennisk

    Can't sort table via ID

    why not strip off the 'Q' in a query, convert to Integer and sort that.
  7. Dennisk

    Error handling needed for Append and Delete queries?

    look up transaction processing in the help file. it is the transaction.rollback that does it all for you, in a transparent manner.
  8. Dennisk

    Question Help, I'm in a State!

    First thing I would do is learn to spell av - have avin - having plzz - please cud - could
  9. Dennisk

    Error handling needed for Append and Delete queries?

    Use transactions processing if you want to undo changes. use Docmd.Execute YourSqlStatement, DBFailOnError this will cause any error routines to execute, and is where to place your transaction rollback command.
  10. Dennisk

    Totalling Time fields

    Just be aware that totaling hours and minutes from a datatime field will only go up to 23h 59 min. This is the way Access works (or at least the versions I have worked on) You may have to spilt the hours from the mins and perform int(totalmin/60) to get the hours and mod 60 on the total...
  11. Dennisk

    quiting the application when form close button pressed

    What you need to do is to disable the Min max close buttons on the form then generate a button to close the application (there is a button wizard that will help you)
  12. Dennisk

    Can't see RecordSource fields in OnPage event logic

    I don't think Me. is applicable in this context, just refer to the fields as you you see them in the field list.
  13. Dennisk

    Adding multiple photos to an item

    You require a Parent table for the item, and a child table to hold the photos. The child table will hold the primary key of the item as a foreign key. However standard practice is to store a link to the photo and not the photo itself as your db will bloat to the point where you may wait a...
  14. Dennisk

    aged receivable report based on query

    You can specify what column headings you require on a crosstab whether there is data or not. Open Query properties and enter each column required in quotes seperated by a comma.
  15. Dennisk

    Question Creating User Accounts for database on shared folder

    Quite often when moving shotcuts from one PC to another Windoze in its wisdom changes the actual path that you can see in the shortcut properties. Check the properties and re-specify if necessary. Are all the versions of Access the same on each persons PC and are the paths to Access the same...
  16. Dennisk

    Finding array limits

    use UBound(myarr2)-1
  17. Dennisk

    lower and upper limit fieldproperty fieldsize

    Ah so its homework
  18. Dennisk

    Maximum Values only returned

    You require a totals query. Create a normal Select query, Add the style field and the order quantitiy to the grid, then convert to a totals query. I do this by selecting View/Totals from the menu but it may differ from version to version. Then set the type of total for the style to GroupBy and...
  19. Dennisk

    Error: Record(s) can't be read; no read permission...

    what is preventing you from converting a db from Access 2000 to 97, this functionality is built into Access. There is always a method to convert to the previous version. 10 years ago I developed an Access 97 db using Access 2000
  20. Dennisk

    Data mismatching

    Two reasons, spring to mind, 1) does the Cancer Treatment table have an auto numberID, if not You may have two treatment entries with the same ID. 2) Similar to above, I have seen combo box that do not show the correct value and they are out by one and that is where you have 2 keys identical...
Back
Top Bottom