User Profile

Collapse

Profile Sidebar

Collapse
NeoPa
NeoPa
Last Activity: 2 weeks ago
Joined: Oct 19 '06
Location: London - UK
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • All good advice I would say :-)

    There is a slight difference between what you seem to be doing & the natural behaviour of of the ComboBox Control anyway. You're doing a search where the typed content can appear anywhere, while the default behaviour merely matches that text at the start of an entry. Maybe important, but maybe not. Only you can know.

    You can already see though, that every time you set the properties...
    See more | Go to post

    Leave a comment:


  • NeoPa
    replied to g a TempVar in an Access SQL query
    As for dbForwardOnly, This (Microsoft Learn) link may answer your questions.
    See more | Go to post

    Leave a comment:


  • NeoPa
    replied to g a TempVar in an Access SQL query
    Well, I have to say I'm flattered to think there may be people who assume I can translate numerical VarType values into their textual meanings off the top of my head :-D

    Unfortunately I suspect that too few parameters is simply telling you that it's been led to expect some value or other that isn't present. It's general & non-specific. It almost always requires that you examine the SQL, or sometimes even other details of a QueryDef...
    See more | Go to post

    Leave a comment:


  • NeoPa
    replied to g a TempVar in an Access SQL query
    A couple of points, well I suppose three really :
    1. I have no idea why the dbForwardOnly would have any such affect as you explain.
    2. When displaying the value of TempVars!commun itycode be sure to do it in the code before it crashes so that we get to see the value you intended.
    3. The value of 'BS' tells us (for the first time) that it's a string value rather than a numeric one. This is often important when dealing with SQL code, though as you'll
    ...
    See more | Go to post
    Last edited by NeoPa; Jan 6 '26, 03:21 PM.

    Leave a comment:


  • NeoPa
    replied to g a TempVar in an Access SQL query
    Why not see what happens when you simply try to open the QueryDef ("TestQuery" )?
    Obviously, show the value in the Immediate Pane first with :
    ?TempVars!commu nitycode
    See more | Go to post

    Leave a comment:


  • NeoPa
    replied to Outlook automation options
    Hi there Petrol.

    The Outlook.MailIte m object has various properties that pertain to who sent the email (Sender, SenderEmailAddr ess, SenderEmailType , SenderName, SendUsingAccoun t & SentOnBehalfOfN ame) which cover that area. You could also look at the ReplyRecipients collection property for whom the reply should be addressed to automatically.

    Essentially, the Outlook.MailIte m object needs to be set up with this information...
    See more | Go to post

    Leave a comment:


  • NeoPa
    replied to Why doesn't my SetFocus work?
    Interesting. Maybe setting it to the same value that it already has doesn't get recognised as an update - even when your code sets the .Value property of a bound Control.
    See more | Go to post

    Leave a comment:


  • NeoPa
    replied to Why doesn't my SetFocus work?
    It seems you've already found the solution Petrol.

    However, to your point about a message going out to notify the user, let's deal with that. There are two main ways to handle that :
    1. Probably a bit more common is that you move the code that displays the message into the AfterUpdate() section of your code after the FixPhoneNum() procedure has completed. It's main drawback is that it might need to be repeated in every place you update
    ...
    See more | Go to post
    Last edited by NeoPa; Nov 18 '25, 12:26 AM.

    Leave a comment:


  • NeoPa
    replied to Why doesn't my SetFocus work?
    Hi Petrol.

    Without answering directly for now, the usual approach for checking user input is to include it in the BeforeUpdate Event Handler
    (txtHome_phone_B eforeUpdate(Can cel As Integer)). Notice that has a Cancel parameter.

    If/when Cancel is set to TRUE then the update doesn't proceed - which is different from your logic where it updates to the wrong value before being updated again to the text "Invalid"....
    See more | Go to post
    Last edited by NeoPa; Nov 16 '25, 04:15 PM.

    Leave a comment:


  • NeoPa
    replied to Compact and Repair causing errors?
    I should add that when you use something else in place of your original Startup() code it's important that you do *NOT* include the old Startup() in there with it - even if it isn't invoked from anywhere. It must be replaced completely otherwise it's still included in the file that you're testing.
    See more | Go to post

    Leave a comment:


  • NeoPa
    replied to Compact and Repair causing errors?
    Let's try this again. When I say test the issue again, I'm referring to the issue where it crashes after a Compact & Repair.

    So, my question is referring to that. From the answer you gave I assume that means that 'the issue' is still with the database, even after removing the AutoExec macro.

    So, if you create a brand new database again & give it a dummy AutoExec (that does little but exists & gets run), you can...
    See more | Go to post

    Leave a comment:


  • NeoPa
    replied to Compact and Repair causing errors?
    I just revisited your OP (mainly in order to fix the extra spaces) & saw that you'd already tried all that (pretty much). I'd forgotten those details before my reply, so apologies for that.

    If you take the existing database that has the problems, & remove the Autoexec macro completely, does it return fundamentally to a working form - or do the problem(s) persist?
    See more | Go to post

    Leave a comment:


  • NeoPa
    replied to Compact and Repair causing errors?
    While all sorts of special characters are indeed allowed by Access in the names of Forms & Reports, most experienced developers & experts will advise caution with the use of any sort of punctuation characters as these can cause confusion when referring to the items outside of VBA - as well as having a tendency to confuse when reading the VBA. You're absolutely correct to conclude that this should not be any part of the problems you're experiencing...
    See more | Go to post

    Leave a comment:


  • MVPs must, if they feel any responsibility at all, be far more considered before making their opinions as to how things should work known to the A-Team.

    Experience (should have) taught us by now that, just because the reasoning for something isn't clear & obvious to us, doesn't mean that they got it wrong. On most occasions when we bring up anomalies we are privileged to hear the reasoning that they were working to which is often...
    See more | Go to post

    Leave a comment:


  • NeoPa
    replied to Adjusting the height of a report entry in VBA
    I can't understand how that could be your understanding of the situation Peter, but I certainly don't see it that way.

    As always, if you understand the restrictions, then you can do more & better with what you have available. Many can, & do, use this with great flexibility. The fact that no-one - even those who are unaware of what complications may be waiting for the unwary - can get themselves into trouble (because of this restriction)...
    See more | Go to post
    Last edited by NeoPa; Oct 23 '25, 01:36 PM.

    Leave a comment:


  • NeoPa
    replied to Adjusting the height of a report entry in VBA
    Ah. Well. As usual, the devil is in the details ;-)
    The .Height property can never be set to a value that doesn't allow all existing Controls to be covered. Before you ask - This is regardless of any .Visible settings of course ;-)

    Thus, to get around this when not showing lblWithdrawalNo te, you need to position it such that it won't restrict your setting of .Height (or .Width). In some scenarios (I suspect not this one.), you...
    See more | Go to post

    Leave a comment:


  • Yes indeed.
    You're free to explore the thinking that might exist behind the choice to do it that way, but at the end of the day it is what we find it to be so we all just have to deal with it I suppose ;-)
    See more | Go to post

    Leave a comment:


  • I'm getting old & daft Peter :-( :-D
    It is there clearly.
    As that's a separate issue from the original one that this thread is for, why not (/please do ;-)) post a new thread for it & we'll see what we can discover & resolve.
    See more | Go to post

    Leave a comment:


  • I checked there, I saw/see no reference to height in that code Peter.
    See more | Go to post

    Leave a comment:


  • That seems likely ;-)
    I'd need to see the code to know more.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...