Search results

  1. AlexRigholt

    can't run the macro or callback function 'GetEnabled

    Thanks very much for your replies! Had a busy week so am late responding. - I selected "show add-in user interface errors" but got no error. - Attached the callback code. I'll now remove all buttons but the first two, and remove all callback code except that for the first two buttons. If...
  2. AlexRigholt

    can't run the macro or callback function 'GetEnabled

    I removed lots of tabs from the xml. When I add the second button (that calls GetEnabled) then the error occurs. <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" onLoad="onRibbonLoad"> <commands> <command idMso="Help" enabled="false"/> <command...
  3. AlexRigholt

    can't run the macro or callback function 'GetEnabled

    Hi, I'm using Access 2010. In accdb all works. In accde I get: can't run the macro or callback function 'GetEnabled'. Make sure the macro or function exists and takes the correct parameters. I click OK six times to get rid of the error message, and after that icons on the custom ribbon can...
  4. AlexRigholt

    mdb works, mde doesn't

    Re: mbe works, mde doesn't I imported all objects into a new database, and there is no more crashing. I guess Dave was right at the start when he thought that there was a problem with the references. Now I'll add thorough error handling. Thanks all!
  5. AlexRigholt

    mdb works, mde doesn't

    Thanks. I'll put in error handling code, I much appreciate your advise. This project has 200+ forms, 150+ reports so it'll take take time to put it in. I need the program to work tomorrow. The "Payslip Dialog" form has an error indeed. It has about hidden 15 text boxes with calculations, and...
  6. AlexRigholt

    mdb works, mde doesn't

    Re: mbe works, mde doesn't Thanks spikepl. I converted the macro, and get: Private Sub Report_Open(Cancel As Integer) On Error GoTo Payslip_Dialog_Open_dialog_Err DoCmd.Maximize MsgBox "1" DoCmd.OpenForm "Payslip Dialog", acNormal, "", "", acEdit, acDialog...
  7. AlexRigholt

    mdb works, mde doesn't

    Re: mbe works, mde doesn't Option Compare Database Option Explicit Dim Result As Boolean Dim sFile, sQuery As String Private Sub Report_Open(Cancel As Integer) 'On Error GoTo Err_2075 MsgBox "1" DoCmd.RunMacro "Payslip Dialog.Open dialog" MsgBox "2" sFile =...
  8. AlexRigholt

    mdb works, mde doesn't

    Re: mbe works, mde doesn't vbaInet, When I run MDB there is no error message! Error handling: On Error GoTo Err_2075 ... code Err_2074: MsgBox "2074 " & Err.Description
  9. AlexRigholt

    mdb works, mde doesn't

    Re: mbe works, mde doesn't Thanks for looking into this again, vbaInet. I spent another 6 hours working on the references without result. I was planning to use a backup copy that worked OK, and import all new objects into it. When running as an mdb there is no error. When running as mde it...
  10. AlexRigholt

    mdb works, mde doesn't

    True, I had no error handling - had been in a hurry... It crashes on DoCmd.RunMacro "Payslip Dialog.Open dialog" Since it does run as mdb, I agree with gemma-the-husky it will probably be a reference issue. Thanks all!
  11. AlexRigholt

    mdb works, mde doesn't

    My VBA code works when run in mdb format, but after converting it to mde it aborts at multiple places. I use Access 2003. References are all ok. Code compiles without an error. What should I check? Alex.
  12. AlexRigholt

    Add fields to a report

    You're right Pat about duplicating the report writer, and I already have options in all reports to export to Excel... This is going to save me a lot of time! Thanks!
  13. AlexRigholt

    Add fields to a report

    Thanks Pat, Thanks for your replay. A report with all fields wouldn't even fit on a landscape A3 sheet, and a selection of reports wouldn't make my customer happy. I'll be able to code it as per your suggestion 3, but hoped there would be a simple way. I'll assemble strings for both the...
  14. AlexRigholt

    Add fields to a report

    Hello, In a dialog box users select what columns will appear in a report. How to make a report that includes only the selected fields, without having gaps between the columns?
  15. AlexRigholt

    how to suppress the title in OutputTo' html table?

    I found this solution: Const ForReading = 1 Const ForWriting = 2 Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.OpenTextFile("c:\Webinventory\" & sGroup & ".htm", ForReading) strText = objFile.ReadAll objFile.Close strNewText =...
  16. AlexRigholt

    how to suppress the title in OutputTo' html table?

    I use DoCmd.OutputTo acOutputTable, sGroup, acFormatHTML, "c:\Webinventory\" & sGroup & ".htm" The resulting table starts with a centered title with whatever the sGroup variable contains. Is there a way to suppress this title?
Back
Top Bottom