Re: "Set" command anomaly results in Null
- From: Marshall Barton <marshbarton@xxxxxxxxxx>
- Date: Sun, 19 Nov 2006 12:22:25 -0600
Well, I hope you can make this arrangement work for you and
the performance is acceptable.
For API stuff in Access, your first stop must be
www.lebans.com
Be sure to check Stephen's SetGetSB. If it doesn't take
care of your problem, it will at least provide ideas and
example code.
--
Marsh
MVP [MS Access]
BogMonster via AccessMonster.com wrote:
I agree it's messy. Like I said, I'm coming from an Excel background where
I've developed fairly sophisticated models but Excel is not a database and a
recent merger has resulted in the old model becoming obsolete overnight, due
to size. Hence a database solution became necessary. This is my first serious
venture into database development and I effectively have about 6 weeks to
design, develop and implement the new solution (while holding down my regular
responsibilities!). So I really had to run with my first instincts as I don't
have the time luxury or experience to try different approaches. There aren't
any other developers in my department and the formal IT group just don't want
to know my problems!! :-(
Yes, the HasModule was a subtlety as I don't have any code specifically in
those Grid forms and I read that performance is slightly better if you can
exclude them. One more notched down to experience. ;-)
When you mentioned that object can't be null , it was one of those "Doh"
moments. I've been programming long enough to know that but the class error
and lack of sleep combined to give me tunnel vision. :-(
Fortunately, this is a really good forum and I would be significantly further
behind schedule if it wasn't for people like you generously giving up their
time to answer other people's questions. Maybe one day I'll be good enough to
contribute!
I would certainly love to have the opportunity to have an experienced
developer look at my model when it's complete and critique it as that is an
excellent learning aid. Any volunteers? :-)
I think I'll be posting another question later regarding how to get a control
that is off-screen but that has focus, back onto the screen. When I skip
across the grid textboxes, those that are off-screen get the focus but to see
them I have to use the scrollbar. SetFocus doesn't seem to do it. It's been
quite frustrating that Access forms don't seem to have any way of
programmatically controlling the scrollbars, like Excel does. I think there
are probably some API routines that will achieve this but I'm not strong on
those yet.
Marshall Barton wrote:
A seriously messy situaion and I am not convinced that you
must use this approach. However, it's easy for me to say
that when I don't have to produce your app ;-)
A form is not a class object unless it has a module, so the
HasModule setting is absolutely required when you want to
use it as a class. It's a rather subtle requirement that
can easily slip through the cracks if you haven't seen it
before.
Many thanks for you prompt response. I guess I did go on a bit but I was[quoted text clipped - 39 lines]
worried that I may leave something important out. :-)
invisible button controls over an area of a form and use the
button's MouseUp event to get the click's X,Y coordinates.
.
- Follow-Ups:
- Re: "Set" command anomaly results in Null
- From: BogMonster via AccessMonster.com
- Re: "Set" command anomaly results in Null
- References:
- "Set" command anomaly results in Null
- From: BogMonster
- Re: "Set" command anomaly results in Null
- From: Marshall Barton
- Re: "Set" command anomaly results in Null
- From: BogMonster
- Re: "Set" command anomaly results in Null
- From: Marshall Barton
- Re: "Set" command anomaly results in Null
- From: BogMonster via AccessMonster.com
- "Set" command anomaly results in Null
- Prev by Date: Trap Enter Key
- Next by Date: Re: "Set" command anomaly results in Null
- Previous by thread: Re: "Set" command anomaly results in Null
- Next by thread: Re: "Set" command anomaly results in Null
- Index(es):
Relevant Pages
|