Search results

  1. H

    If Statement

    So is there any way of having multiple criteria referencing the same field without repeating the field name each time?
  2. H

    If Statement

    If I put an Iff statement into a Query such as: IIf([Table A]![FieldName] Like "A" Or [Table A]![FieldName] Like "B","Answer A", "Answer B") It works ok but as the table name is the same why do I have to repeat it. If I try: IIf([Table A]![FieldName] Like "A" Or Like "B","Answer A", "Answer...
  3. H

    Cross Tab Report

    Great - Thanks
  4. H

    Cross Tab Report

    I have designed a report based on a cross tab query that counts the number of units sold by each dealer per month. So the left hand column lists the dealer and the rows along the top list the months. There is then a total at the bottom. This worked find when I was reporting on an entire year...
  5. H

    Export Temporary Query

    I need to export the results of the queries as they are sent to a client in Excel format on a regular basis. This is a large and complex db with lots of queries that just get exported to Excel spreadsheets for the client to look at the data.
  6. H

    Export Temporary Query

    I have a simple function that says: DoCmd.TransferSpreadsheet acExport, 10, "QueryName", "C:\FileName.xls", True, "TabName" I want to export 5 or 6 very similar queries and I am concerned that my database is starting to just have way too many queries to be manageable. Can I replace the query...
  7. H

    Crashing Whilst Reports Are Running

    Hi Not sure I understand. Not really a programmer but doesn't wend need a while and isopen need to be defined? Do I just repeat the code you wrote and change the report name each time? Basically I just want it to open one report then the other, then the other etc until they are all open. I...
  8. H

    Crashing Whilst Reports Are Running

    I have a series of 14 reports which I need to preview and then print. Rather than do them one at a time I would like to open them all in preview mode at the click of the button. All the reports preview fine if run one at a time or in batches of 3 or 4. However if I run a batch of 14 it always...
  9. H

    Status Bar

    I am using: RetVal = SysCmd(acSysCmdInitMeter, "Preparing Database...", 5) in order to display custom messages on the status bar. This works fine when I test being able to display this but when queries are running then the standard Status Bar saying Running Query etc over rides my custom...
  10. H

    Delete Object

    As part of a long series of import routines I use the function: DoCmd.DeleteObject acTable, "CH32310N_ImportErrors" to clean up tables. However I have to have one of these statements for each table error table. Is it possible to use wildcards within this function to say for example...
  11. H

    Legend and Bar Colours Dont Match

    Thanks for offer. Managed to sort it.
  12. H

    Legend and Bar Colours Dont Match

    I have created a pivot chart and changed the bar colours via the properties but when I add a legend the key uses the default colours not the updated ones???? Any ideas???
  13. H

    Syntax Error

    Many thanks and my apologies for the breach in protocol
  14. H

    Syntax Query

    I am obviously being really stupid by the query below compiles ok but when I run it I get a syntax error. Its a long query so it is split up with " & _ Any help would be appreciated.... DoCmd.RunSQL ("SELECT [Bounce Backs To Process - Imported].ID, [Bounce Backs To Process - Imported].Contents...
  15. H

    Syntax Error

    I am obviously being really stupid by the query below compiles ok but when I run it I get a syntax error. Its a long query so it is split up with " & _ Any help would be appreciated.... DoCmd.RunSQL ("SELECT [Bounce Backs To Process - Imported].ID, [Bounce Backs To Process -...
  16. H

    Finding the last space in a string

    Great thanks.
  17. H

    Finding the last space in a string

    I need to strip out everything before the last space in a string. I can use the Instr function to find the position of the first space but cant work out how to use it to find the position of the last space? So if I have the text "This is what I want" the query should return "want" Any ideas???
Back
Top Bottom