Search results

  1. K

    Component request Pending

    Understood arne, but I can't get the syntax right. The problem seems with the last 3 lines. ' wb.DisplayAlerts = False wb.Save objExcel.Quit I have to rem out the Display alerts or it errors. But the result is not good. The workbook won't open without a "locked for editing" error and...
  2. K

    Component request Pending

    I'm in the wrong forum, sorry...but may not matter that much but this is VB6. It was working without error until I added the Save and Quit commands. June: When this crashed I lost that getExcel Function and a whole lot of API I'd pasted in. But it just returned the Excel filename/path.
  3. K

    Component request Pending

    I seem to be stuck in a loop with: This action cannot be completed because the other application is busy. Choose 'Switch To' to activate the busy application and correct the problem. I can only Switch To or Retry neither give me back control. Sub Main() Dim ExcelFile As String Dim objExcel As...
  4. K

    Can't find various things

    Oh yes, but not me! I *did* rem out the Form_Open command without realising it was also set in properties.
  5. K

    Can't find various things

    Whew, many thanks for letting me know. I hadn't altered the shortcut property myself but I knew a left click had other uses (in this Form). But I don't remember shortcut being an issue when other fields were added before. (Maybe they were not hidden ?) Looking for the Hide/Unhide menu was the...
  6. K

    Can't find various things

    Perhaps a new approach... Have attached a db, when the Form is Opened the control 'txtEnginer' is not present or showing like all the rest are. Why ? It is in the query the Form is based on and is bound. Thanks. Have been trying to figure it out for over 12 hours!
  7. K

    Can't find various things

    Hi Doc_man, So few solutions... The message that forced an End task was a mistake caused while debugging. I was just wondering if any way to get out of it (other than End task) existed. That's not related to my second question. The search for Hide/Unhide goes on, and rather irritating, as I...
  8. K

    Can't find various things

    If a Form insists on displaying a message (looks like an OK msgbox) and just repeats forever forcing a Cntl-Alt-Del to end task (Access), is there any other way of quitting (without Ending task) ? Please, Where is Hide/Unhide to determine what fields are displayed in a datasheet Form. I have...
  9. K

    Possible to update ?

    Very nice June, I can see that's a really good solution. Wouldn't have though of db.Execute.
  10. K

    Possible to update ?

    LOL no I have not! I'd have to setup some test conditions and fluff around for ages. I'd find it much easier to do it all in VBA.
  11. K

    Possible to update ?

    Can an single update query fix spelling mistake in e.g. all instances of "Sydney Lipton" change to "Sidney Lipton" The field is called "AC" and contains other text and "Sydney Lipton" could appear anywhere.
  12. K

    Cannot resolve Error 3075

    So that error will present even if Set Warnings = False
  13. K

    Cannot resolve Error 3075

    Galaxiom, what is the action of 'dbFailOnError? At run time I find Set Warnings False is needed, and just wondering if that will cause any issues?
  14. K

    Cannot resolve Error 3075

    Aah.. got it, thanks very much.
  15. K

    Cannot resolve Error 3075

    Run-time error '3075': Extra ) in query expression DoCmd.RunSQL ("UPDATE tblmain4 SET [AComment] = " & Dat & " WHERE [Prefix] = '" & Serial & "'") Dat is a String Serial is a String AComment is Long Text in the table Prefix is Short text What am I doing wrong ?
  16. K

    Query gives syntax error

    No, he didn't.
  17. K

    Query gives syntax error

    Thanks Arne. So an update Query is the wrong approach? It is working perfectly but from Private Sub txtField4_DoubleClick. varValue = Me!txtField4 worked but it could not find !txtFleld4. That had to be just "!Field4" Most baffling.. to me ! Thanks...
  18. K

    Query gives syntax error

    Yes arne, 100%. But I've got to be a bit careful as the form is based on a Filtered query.
  19. K

    Query gives syntax error

    I was wondering that. So I'd use the Forms record source ? Yes, updating null fields to the value c-clicked.
  20. K

    Query gives syntax error

    I want to update all Field4's in my datasheet Form1 to the value d-clicked in the Field4 Double click event (if a value exists). Update Form_Form1.Field4 = Me!Field4 Where Form_Form1.Field4 is null What am I doing wrong ?
Back
Top Bottom