Search results

  1. MajP

    Solved Data entry creates a new client

    That is because the field is bound. When you open the form it is open to a new record. When you select a name it puts it in the clientname field which is a bound field. If you want to move to an existing client then that field should be unbound with code to find that client. But then you will...
  2. MajP

    Solved Using ACCESS, WORD and OUTLOOK to send bulk E-Mails

    To me the error is still strange. If I try to create and object that I cannot create I would expect this. I should get that error when I do this.
  3. MajP

    Solved Using ACCESS, WORD and OUTLOOK to send bulk E-Mails

    If you are using "new" (web based outlook) you have bigger problems than that.
  4. MajP

    Solved Using ACCESS, WORD and OUTLOOK to send bulk E-Mails

    Or try a decompile / recompile and see if then you can get it to compile. https://www.fmsinc.com/MicrosoftAccess/Performance/Decompile.asp
  5. MajP

    Solved Using ACCESS, WORD and OUTLOOK to send bulk E-Mails

    Not from what you are showing. If you defined a constant with the CONST keyword and then tried to reassign a value you would get that error, but that is not what you are doing. So I guess it is a bogus error message. Sometimes when things do not compile you can get weird errors. I would...
  6. MajP

    DEMO: How to display different background colours on a Continuous type form.

    Also I am not sure if there ever was ever a bug. That thread has a work around because the OP caused the problem. @AHeyne points this out here...
  7. MajP

    DEMO: How to display different background colours on a Continuous type form.

    I think there are some pros and cons for the different cases and the user might have to test. I have done on paint and got some wacky results when it repaints especially if the format is on the actual controls not a text box behind the controls. I have seen it when you start scrolling or click...
  8. MajP

    DEMO: How to display different background colours on a Continuous type form.

    @isladogs, this should be updated on your site. It is no longer up to date since at least 2013. At a minimum after 2013 both the GUI and VBA could create 50 FCs. However, I think based on some reading it could have been in 2010 as well. At a time there was a bug and not a limit. You could...
  9. MajP

    Solved Multiple listboxes on main form

    I find it really hard to do this using parameters in the queries, and always find it easier to do this with sql strings in the code. Especially when you have more than 2 lists/combos. This way I can make a single procedure to filter and call that procedure from multiple events as needed...
  10. MajP

    DEMO: How to display different background colours on a Continuous type form.

    I added to this demo so you can compare and contrast the other methods. Rich Text Conditional Formatting Detail OnPaint To make the new demos work I added a field lngColor to the categories table. When you select a color it saves both the rich text as well as just the color value. 1. By...
  11. MajP

    Solved First Record In Subform Calculated Control #Type!

    Are you concatenating with a "+" instead of a "&"? Please show the function, if not no one can guess at the cause.
  12. MajP

    Solved Action Query Parameter Numerical Comparissons In VBA

    https://www.access-programmers.co.uk/forums/threads/ms-access-custom-control-built-in-another-language.307414/post-1646046
  13. MajP

    Solved Conditional formatting without conditional formatting

    I do not get this statement. Yes you would select all the controls and apply the rules. However this should take 5-10 minutes and be done. Not sure how you are doing CF, but clearly you are doing something wrong because this is a trivial thing to do in CF.
  14. MajP

    Expression After Update you entered as the property setting produced the following error

    I would look at possible corruption and do a decompile recompile https://www.fmsinc.com/MicrosoftAccess/Performance/Decompile.asp
  15. MajP

    Solved Class Properties Assigned From Procedures

    But you understand why this makes no sense? Public Property Let PropName(NewValue As Long) Dim rs As DAO.Recordset Set rs = CurrentDb.OpenRecordset("UnionQueryName", dbOpenSnapshot, dbSeeChanges) mPropName = rs!FieldName rs.Close End Property You have a property with a required...
  16. MajP

    Solved Class Properties Assigned From Procedures

    One more thing. A get without a set/let can be written as a function and I know of no difference. You end up calling it the same way. Private m_RS_Products As DAO.Recordset Public Sub Initialize(QueryName As String) Set m_RS_Products = CurrentDb.OpenRecordset(QueryName) End Sub...
  17. MajP

    Solved Class Properties Assigned From Procedures

    In your example there appears to be more than one record unlike my example. In that case you may want a getter without any class variable. No need to store those values because they likely change every time you are getting them. Private m_RS_Products As DAO.Recordset Public Sub...
  18. MajP

    Solved Class Properties Assigned From Procedures

    I think it is correct. The point is that Lets/Sets and Gets have to have matching signatures and yours does not. Your let is a long and Get is a variant (no specified data type). Public Property Let PropName(NewValue As Long) ' Let is a long End Property Public Property Get PropName() '...
  19. MajP

    Experience with Ms Project and Access?

    I know that people have been raving about some of the home grown Gantt Charts for their capabilities, but when I was doing this I did not know about this or likely they did not exist yet...
  20. MajP

    Combo Box Multi Select Saving

    Can you explain more where you get your choices from and how large that is. I do not really understand what you mean by unloading. The demo creates an ado in memory recordset, reads and loads the data into the recordset, and then binds that to the pop up form. I could envision that it might...
Back
Top Bottom