• WSdane_walther

    WSdane_walther

    @wsdane_walther

    Viewing 15 replies - 16 through 30 (of 129 total)
    Author
    Replies
    • in reply to: Invalid data on form close (2000/sp3) #939288

      Thanks to both of you for suggestions — however, it seems that even setting Cancel=true on the Unload() event does not actually prevent the form from closing if the table has a required value and does not allow zero-length strings.

      I just removed the required setting from the table, and perform my own checks in the form unload() event…. Not ideal, but acceptable.

      ..dane

    • in reply to: test for ‘Nothing’ ? (2000/sp3) #938939

      Du-ohhh!! silly oversight.

      thanks Hans.

    • in reply to: Record navigation during acFormAdd (2000/sp3) #938514

      FYI — I ended up updating the process such that the calling form goes ahead and adds a new entry, preloads some values, saves the new entry (tagging it for later verification), and opens the “edit” form in edit mode; same functionality to the user, same form, same code in the opened form… When they’re done, I call that record back up, and verify that all the data’s good. If so, I keep. If not, I can do whatever (display error, remove the item, etc)

      thanks,
      ..dane

    • in reply to: Record navigation during acFormAdd (2000/sp3) #938325

      Hans — I like the idea of using an unbound form for new items — but are you suggesting to have two identical forms, the difference being that one is bound and one is unbound? Or are you meaning something different?

      thanks,
      ..dane

    • in reply to: Access equivalent toGetOpenFileName? (2000/sp3) #937625

      AWESOME!

      Thanks. that is so much nicer an approach.

      ..dane

    • in reply to: Embedded OLE object update sluggish (2000/sp3) #937621

      Thanks for the suggestion Hans. Worked like a champ..

      FYI — I set the .verb to acOLEVerbHide to keep the PowerPoint application from popping up and remaining open even after the slide had been updated..

      ..dane

    • in reply to: Resize embedded OLE object to fit screen? (2000/sp3) #937138

      Edited by HansV to provide link to post and to MSKB article – see Help 19

      Found post 30459 that has a routine to query WIndows API for the screen resolution…

      Found an Microsoft Knowledge Base Article 210590 regarding how to convert Twips to Pixels. Reversed the algorithm to make a PixelToTwip conversion.

      Module is attached for anyone to reference…

      ..dane

    • in reply to: Resize embedded OLE object to fit screen? (2000/sp3) #937129

      Looks like the following wouldn’t work, because maximizing inherently makes the form visible again…

          Me.Visible = False
          DoCmd.Maximize
          sglWindowWidth = Me.InsideWidth
          sglWindowHeight = Me.InsideHeight
          DoCmd.Restore
          Me.Visible = True
      

      I don’t see anything in the screen object either, that would tell me maximum available screen size. And furthermore, when you ‘maximize’ a form, it looks like it overlaps the Windows toolbar (at least with Off2k/Win2k). I’d really like the maximum desktop size, not maximum screen size…

      ideas?
      ..dane

    • in reply to: Resize embedded OLE object to fit screen? (2000/sp3) #937128

      Thanks… for some reason I thought the .width/height properites were wanting inches instead of twips, so I had the .insidewidth property divided by 1440 (twips in an inch). That’s what went wrong — it was too small! 🙂

      Next question; is there anyway to learn the maximum screen size withOUT actually resizing a window? Hmm… maybe I can use the .visible property to maximize, grab the size, then go back…. I’ll try and report back.

      ..dane

    • in reply to: free form polygon in Access? (2000/sp3) #936991

      Awesome! I like much better having all the code in the databse vba, not in the embedded object.

      Thanks for all your help. Working well now….

    • in reply to: free form polygon in Access? (2000/sp3) #936829

      Alright, I’ve stumped myself again.

      Sorry if this is a newbie question, but I can’t find anything in the help files…

      I’ve gone into PowerPoint and played around with the Polyline object, successfully creating, resizing, and moving it around to get comfortable with the object..

      I’m now back in Access, and on a form have added an Object->PowerPoint Slide, which I’ve named pptPreview. I’ve also got a command-button called cmdGeneratePreview. And within the pptPreview slide I’ve even got the subroutine (subDrawPolyline()) included to genreate the polyline shape.

      Now — how do I invoke subDrawPolyline() from within the Access command button cmdGeneratePreview?

      thanks,
      ..dane

    • in reply to: free form polygon in Access? (2000/sp3) #936161

      Thanks Charlotte, Hans, and Wendell for all jumping in with suggestions..

      Of all the options, I’ll probably look into an embedded Powerpoint slide. I may also look into the suggestion of a report with dozens of line segments… the data is stored as dozens of sets of line segments anyway, so it would not be too difficult to do something like that.

      thanks again,
      ..dane

    • in reply to: free form polygon in Access? (2000/sp3) #935817

      > But what would be the purpose in a database application?

      I never thought you’d ask, Hans… 🙂

      Fairly simple situation; I am electrical engineer, and develop PCBs as my primary task. Not sure how much you know about PCB design, but in short: I design a PCB, and that PCB has a particular shape to it, with parts all over the place to make it work. All of this data (component locations, rotations, PCB outline, etc) is represented in an Access database generated by the PCB design tool. Once the PCB design is complete, it is put into what’s called a PCB panel, which adds material around the particular PCB outline to make it a retangular shape, so that the machines producing the board can ‘grip’ the panel more easily (simplified). Additionally, a PCB panel can be made very large and include multiple individual PCBs at different angles within the PCB panel (think of a jigsaw puzzle).

      As a task secondary to my design role, I’m building a tool to help process PCB panel data (simplified). One feature that is not necessary but would be a really nice addition is a “preview” button that draws a representation of the PCB panel, based on the PCB outlines of each PCB within the panel (each PCB offset and rotated properly as defined within the panel).

      I see two possible solutions:

      (1) use some sort of external tool (commandline driven, non-GUI), given a set of line segments, to generate a bmp/gif/jpg image of the PCB panel, and then just pop up a window displaying the image. Pros are that I don’t have to write an algorithm, and that it can be done real-time. Cons are that I need an external tool, and currently I don’t know of one that will do that.

      (2) utilize something similar to the “Free Form” drawing object found in word, excel, and powerpoint to generate the image myself from the set of line segments. Pros are that I have control over the algorithm and how it is displayed, and can be done real-time. Cons are that I currently don’t know how to invoke a free form shape in Access.

      Sorry if that reply’s too long; but I bet you fully understand now what I’m looking to do…

      I’ve thought about invoking a powerpoint object, creating a blank slide, and use the powerpoint freeform shape tool to generate the image. But if I could do it without invoking a PowerPoint object, that’d be sweet….

      have a great weekend,
      ..dane

    • in reply to: Removing Styles in Bulk (Word 2002) #925157

      Karen — tried your suggestion (quicker for me, no macros), but I get the following error:

      The built in style “xxx” cannot be deleted.

      In my situation, I had a paragraph of style “Normal” and underlined and italicized it. When I moved away from the paragraph, it automatically changed the style type to “Heading 7.” Of course this is NOT what I wanted done (or I would have changed the style myself!). As a result, that Style was pulled from the ‘master list’ (I suppose?) of styles into my document. And I therefore cannot remove it…

      Am I overlooking the obvoius?

      And is there any way to have Word *NOT* automatically change your styles?

      thanks!
      ..dane

      ps.- I am using Word 2000 (not 2002) but felt it was similar enough a topic to piggy-back on this thread…

    • in reply to: Forcing screen update? (2000/sp3) #892696

      Tim,

      Ah-ha! My newbieness is obviously showing… I didn’t even think about putting different control data on your form. But that’s a very good idea. Theoretically, I could have all of my controls (buttons, listboxes, etc) on a userform, and use the userform’s repaint mechanism. Wow, that’s brilliant. doh

      Well, the tool seems to work now and I think is done. But I will definately consider this route for future tools.

      Thanks for all the help everyone,
      ..dane

    Viewing 15 replies - 16 through 30 (of 129 total)