Search results

  1. J

    Double jeopardy

    Thanks. I have, in fact, done just that but I have other situations where there may. or may not, be multiple results of the requery. If there is only one result I need the program to progress to the next combo automatically. If there is more than one result then the dropdown is activated. In the...
  2. J

    Double jeopardy

    Hi. I put the two tempvars in there to feed the comboboxes. In real life they would be instantiated in a separate form with the current record's genus and species. The code supplied is just the problem bit, the real code uses the genus and species info to select one, or more, images of that...
  3. J

    Double jeopardy

    I have two problems in the attached sample. 1. If I leave the recordsource statement un-commented, the code goes straight to the "Createdby_Gotfocus" event, runs it then returns to the onload event. Comment it out and the code runs as expected. 2. With the "on error resume next" statements...
  4. J

    Solved It needs a bracket

    My sincere thanks to all. The brackets have been removed. I find the error messages, in many cases, do nothing but increase the angst. Messages like "Expected bracket" etc are of little, or no, value. I finished up using Arnelgp's suggestion with "Select distinct" added and the group clause...
  5. J

    Solved It needs a bracket

    Thank you. A constructive suggestion is most useful.
  6. J

    Solved It needs a bracket

    This sql string tells me it expects ")". There must be one place I haven't tried and I have no idea where that place is. The problem is in the where clause and specifically after the "And", as I read it. The where clause was originally a "Having" clause but this seemed to be causing even more...
  7. J

    Record is deleted

    It depends entirely on where you place the "set rs1". If it is placed before the delete * you will have to close and reopen the recordset. A .move first or last will throw an error. Incorporating the "rs1.Move 0, rs1.LastModified" construct will allow the last record to be seen but a subsequent...
  8. J

    Record is deleted

    And that is where the original problem started. I would, traditionally, delete before opening the recordset, but when it came to a .movefirst in the code, is when that error appeared so I have been wrestling with various configurations to try and solve this. The sample I posted was the last...
  9. J

    Record is deleted

    I have a simple table that acquires a few records during the operation of a module. After acquiring 4 or 5 records this table is read to indicate where action is required. My problem is that I am getting an error indicating the "record is deleted." Prior to running the module I delete all...
  10. J

    instr in a filter

    Correct. I set the ANSI compatible SQL some time ago as it simplifies "?" using SQL strings and doesn't affect stored queries. Thank you all for you comments.
  11. J

    instr in a filter

    I finished up with .Filter = "[Collector] alike '" & sFilter & "%'" This works as required. Thanks again for your help.
  12. J

    instr in a filter

    Thanks. Much appreciated. John
  13. J

    instr in a filter

    I'm not really stupid, it just seems that way sometimes. John
  14. J

    instr in a filter

    I have a list of names in a field "Collector" that can include the names of others in a team, .e.g. "Jones. K. Smith. W." I want to filter this field such that it will return all fields that include "Jones" . I have tried many variations of the code below but .filter always returns "False"...
  15. J

    Solved Variable in HAVING clause

    I've never really got into debug.print but I do frequently use msgbox as a debugging tool. In the case of an sql string, however, the cause of the error is often a bit vague. In this particular case the error messages were just a little above useless. As for running on data, I never run...
  16. J

    Solved Variable in HAVING clause

    Point taken. I wasn't considering the sql string as a whole, but just that particular part of it.
  17. J

    Solved Variable in HAVING clause

    Hi. I'm not building a string, I'm restricting the result to a particular part of a field. In this case "Collection", in another case "Parks" hence the variable. Regarding the '0', I agree this should not work, but it does, or appears to. If I remove the quotations the sql string errors.. I...
  18. J

    Solved Variable in HAVING clause

    I enclosed the sTable in " & sTable & ". Now it works.
  19. J

    Solved Variable in HAVING clause

    I know this is an old beast but none of my reading, or various attempts, has set me on the right path. In the code below sTable is passed in from the calling sub but is not recognised by the SQL statement. Replacing the variable with a string, "Collection" in this case causes the SQL to run. I...
  20. J

    How to make MS Access looks like real Application

    For what it's worth, I run my accde files from a shortcut with the window minimised. All you see is the currently opened form.
Back
Top Bottom