Jumat, 30 Desember 2022

Re: [MSAccessProfessionals] Happy New Year!

Other email clients, such as mine, use the following instead:


On 12/30/2022 5:26 PM crystal (strive4peace) via groups.io <strive4peace2008=yahoo.com@groups.io> wrote:


thanks, Ozair, very kind of you to say -- I stand on the shoulders of giants who gave much more.

by the way, its good to keep previous messages in your reply. Duane uploaded an image on how to quote post in a reply to show previous messages using the web interface here:

https://groups.io/g/MSAccessProfessionals/photo/249167/2977001

Happy New Year!

kind regards,
crystal

On 12/29/2022 11:22 PM, ozairkhalidozair wrote:
Thanks Crystal - your contribution to Access community is unparalleled.


Best,
Ozair

Re: [MSAccessProfessionals] 🎁 Buon Natale da Giorgio!

thanks, Giorgio, I love the beautiful gif!

Happy New Year, Buon Natale and Buon Anno

kind regards,
crystal

On 12/29/2022 2:03 PM, Giorgio Rovelli via groups.io wrote:
 
On 12/28/2022 11:11 PM crystal (strive4peace) via groups.io <strive4peace2008=yahoo.com@groups.io> wrote:


Happy 4th day of Christmas.

Best wishes to everyone for a Happy New Year!

kind regards,
crystal



Re: [MSAccessProfessionals] Happy New Year!

thanks, Ozair, very kind of you to say -- I stand on the shoulders of giants who gave much more.

by the way, its good to keep previous messages in your reply. Duane uploaded an image on how to quote post in a reply to show previous messages using the web interface here:

https://groups.io/g/MSAccessProfessionals/photo/249167/2977001

Happy New Year!

kind regards,
crystal

On 12/29/2022 11:22 PM, ozairkhalidozair wrote:
Thanks Crystal - your contribution to Access community is unparalleled.


Best,
Ozair

Kamis, 29 Desember 2022

Re: [MSAccessProfessionals] Happy New Year!

Thanks Crystal - your contribution to Access community is unparalleled.


Best,
Ozair
_._,_._,_

Groups.io Links:

You receive all messages sent to this group.

View/Reply Online (#116350) | Reply To Group | Reply To Sender | Mute This Topic | New Topic
Your Subscription | Contact Group Owner | Unsubscribe [sugeng.panjalu.access@blogger.com]

_._,_._,_

[MSAccessProfessionals] 🎁 Buon Natale da Giorgio!

 
On 12/28/2022 11:11 PM crystal (strive4peace) via groups.io <strive4peace2008=yahoo.com@groups.io> wrote:


Happy 4th day of Christmas.

Best wishes to everyone for a Happy New Year!

kind regards,
crystal



Rabu, 28 Desember 2022

[MSAccessProfessionals] Happy New Year!

Happy 4th day of Christmas.

Best wishes to everyone for a Happy New Year!

kind regards,
crystal



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#116348): https://groups.io/g/MSAccessProfessionals/message/116348
Mute This Topic: https://groups.io/mt/95928385/3568969
Group Owner: MSAccessProfessionals+owner@groups.io
Unsubscribe: https://groups.io/g/MSAccessProfessionals/leave/6606618/3568969/577250336/xyzzy [sugeng.panjalu.access@blogger.com]
-=-=-=-=-=-=-=-=-=-=-=-

Re: [MSAccessProfessionals] Basing an Expression off of Another Expression?

thanks, Graham! Good information

Happy New Year

kind regards,
crystal

On 12/17/2022 3:42 AM, Graham Mandeno via groups.io wrote:

Hi Penny

I think the problem is that ADDR can NEVER be Null.  ADDR is derived from this expression:

[ADDR Comm] & " " & [ADDR Number ] & " " & [ADDR St Dir ] & " " & [ADDR Street ] & "   " & [Cross St Comm] & "   " & [Cross St Dir] & " " & [Cross St] & "  " & [Cross St 2 Comm] & " " & [Cross St 2 Dir] & " " & [Cross St 2] & " " & [Precinct]

Even if all the component fields ([ADDR Comm], [ADDR Number ], etc) are Null, the resulting expression will still contain all the spaces you have concatenated into the expression between the Null fields, so the final result will be "               " – 15 spaces, if my count is correct!  Of course, you can't see these spaces in the output of your query, but they are there all the same.

You could use the Trim() function to remove leading and trailing spaces from the result:

ADDR: Trim([ADDR Comm] & " " & [ADDR Number ] & " " & [ADDR St Dir ] & " " & [ADDR Street ] & "   " & [Cross St Comm] & "   " & [Cross St Dir] & " " & [Cross St] & "  " & [Cross St 2 Comm] & " " & [Cross St 2 Dir] & " " & [Cross St 2] & " " & [Precinct])

… but the result will still not be Null – it will be an empty, or "zero-length" string (ZLS).  It test for this, IsNull will not work, so you must use Len(<string>)=0 or <string>=""

NEW ADDRESS: IIf(Len([ADDR])=0,[ADDRESS COMPLETE]),[ADDR])

If you really want ADDR to be Null if all its components are Null, then you can use a trick that exploits a subtle difference between the & and + operators.  It goes like this:

Null & "some string" -> "some string"
and
"some string" + "some string" -> "some stringsomestring"
but
Null + "some string" -> Null
Also:
Null & Null -> Null

In other words, + behaves the same way as & unless one of the operands is Null, in which case the result is Null.

You can then combine that with brackets in the expression:

(Null + "string1") & (Null + "string2") & (Null + "string1") -> Null
but
(Null + "string1") & ("ABC" + "string2") & (Null + "string1") -> "ABCstring2"

Putting all this together, you could change your original expression like this:

ADDR: ([ADDR Comm] + " ") & ([ADDR Number ] + " ") & ([ADDR St Dir ] + " ") & ([ADDR Street ] + "   ") & ([Cross St Comm] + "   ") & ([Cross St Dir] + " ") & ([Cross St] + "  ") & ([Cross St 2 Comm] + " ") & ([Cross St 2 Dir] + " ") & ([Cross St 2] + " ") & [Precinct]

That way, ADDR will truly give Null if all the components are Null.  It will also have the advantage of removing all the unwanted spaces between components if some, but not all of them are Null.

I hope this has given you some ideas!

Best wishes,
Graham

 

From: MSAccessProfessionals@groups.io <MSAccessProfessionals@groups.io> On Behalf Of Duane Hookom
Sent: Friday, 16 December 2022 06:30
To: MSAccessProfessionals@groups.io
Subject: Re: [MSAccessProfessionals] Basing an Expression off of Another Expression?

 

Hi Penny,

I wonder if you are using the expression:

NEW ADDRESS: IIf(IsNull([ADDR]),[[ADDRESS COMPLETE]),[ADDR]

in the same query as you are defining ADDR? The "ADDR" is referred to as an "Alias". I never use an alias in an expression in the same query as it is created. I always repeat the complete calculation rather than the alias. Also, ADDR will never be Null based on your concatenation which returns at least 10 spaces even if all the combined fields are null. In the following expression, if [ADDRESS COMPLETE] is null, the concatenation will be displayed. 

 

NEW ADDRESS: Nz([ADDRESS COMPLETE],[ADDR Comm] & " " & [ADDR Number ] & " " & [ADDR St Dir ] & " " & [ADDR Street ] & "   " & [Cross St Comm] & "   " & [Cross St Dir] & " " & [Cross St] & "  " & [Cross St 2 Comm] & " " & [Cross St 2 Dir] & " " & [Cross St 2] & " " & [Precinct])



Duane

 

 


From:  Price, Penny E.

 

Subject: Re: [MSAccessProfessionals] Basing an Expression off of Another Expression?

 

Hi Duane!

 

Yes, in the Query that runs my main Form,  ADDR is a Field (Expression?).  It's a concatenation of multiple fields.  NEW ADDR is also a Field (Expression?) that I'm trying to create which will show the information form ADDRESS COMPLETE ( Field) if there is anything entered there, or will otherwise show the concatenated address contained in ADDR.

 

In the Query it looks like this:

 

ADDR: [ADDR Comm] & " " & [ADDR Number ] & " " & [ADDR St Dir ] & " " & [ADDR Street ] & "   " & [Cross St Comm] & "   " & [Cross St Dir] & " " & [Cross St] & "  " & [Cross St 2 Comm] & " " & [Cross St 2 Dir] & " " & [Cross St 2] & " " & [Precinct]

 

Crystal has also been trying to help me with this one.  She made the very valid complaint that my Field Names should not have any spaces, which is of course true, but unfortunately my dyslexic brain can't seem to read them when I write them that way! I know. My bad!  She did show some concatenated information to me based on the abbreviated info I had previously shown that is contained in ADDR. I still couldn't wrap my head around creating the entire expression though I had thought I might have to use the concatenated info rather than the Expression (Field?) ADDR.

 

For the most part, I've never had any problems with this database. (IT has confirmed this to me on several occasions! Ha ha!) Right now I'm just trying to refine it a bit so I can retire some day and hopefully users who have no experience other than inputting info into a database will be able to run it smoothly in my absence!  New Orleans is calling me!!

 

Best Wishes to All!

 

Penny

 

From: Duane Hookom

 

Subject: [EXTERNAL] Re: [MSAccessProfessionals] Basing an Expression off of Another Expression?

 

 

Hi Penny,

 

Is ADDR a calculated field in the table design? Is it actually stored in the table or just displayed in a query or text box?

 

There is a difference between Null and a zero-length-string. 

 

Duane

 


From: Price, Penny E.

 

Hi Duane,

 

Thanks for the suggestion, but I still couldn't get it to quite work.  If the Old Expression (ADDR) had content then the New Expression (NEW ADDR) has the correct information. But if the New Field (ADDRESS COMPLETE) has an entry then nothing shows up in the Nex Expression (NEW ADDR).  I'm baffled!

 

Any other ideas?

 

 

From: Duane Hookom

 

There is a Nz() function that might work:

New Address: Nz(ADDR, [Address Complete])

If ADDR is null then use the other field.

 

Duane

 

Price, Penny E. - DSD Admin Support Asst III



Hi Everyone!

 

I am wanting to update one of my databases to change how the address is input ….initially I had several fields that I used to signify an address. There was the Street Number (2244), the Street Direction (W), And the Street Name (Colfax Ave).  Since I often needed the entire address to refer to, I created a concatenated address as an Expression and named it ADDR.

 

Although hitting that Enter Key between the original fields doesn't slow my roll any, it does so for other potential users.  I created a New Field named ADDRESS COMPLETE into which the entire address can be entered.  HOWEVER: I still want to have one place that contains the entire address whether it was entered the old way (the 3 separate Fields) or the new way (into the New Field named  ADDRESS COMPLETE).

 

Is there a way to build a New Expression (NEW ADDR), based off whether the Old Expression (ADDR), has an address in it or not. If any of the previously mentioned concatenated fields are filled out, then this expression  should give the info (ADDR).,  otherwise the expression should show the results from the New Field (ADDRESS COMPLETE).   I've tried various iterations of the following but I always get an error.  Is this doable? Thanks Everybody and Happy Holidays to All!

 

NEW ADDRESS: IIf(IsNull([ADDR]),[[ADDRESS COMPLETE]),[ADDR]

_._

Kamis, 22 Desember 2022

Re: [MSAccessProfessionals] Basing an Expression off of Another Expression?

hi David,


thanks for your comment! lol, but no ~ Access can do a lot -- and the best way it can animate it using the form timer event. For those who don't know ... recently posted VBA code and sample databases to draw a snowflake or snowman on an Access report. You can use colors to indicate data conditions


Draw Snowflakes in Access

https://msaccessgurus.com/VBA/Draw_Snowflakes.htm


Draw a Snowman in Access

https://msaccessgurus.com/VBA/Draw_Snowman.htm



and today, I posted more drawing code


Draw December Solstice in Access

https://msaccessgurus.com/VBA/Draw_Solstice_December.htm


~~~

Hopefully these example can give you ideas!  Happy Solstice, Merry Christmas, Happy Hanuka, Kwanzaa, ...


kind regards,
crystal




On 12/21/2022 4:19 PM, David Nealey wrote:
Hi Crystal, 

Do any of these databases allow the snow persons to throw snowballs at another snow person?   I like to have animation in my reports.  And I want them to yell, "Heads up!"

Happy Holidays.

David

From: MSAccessProfessionals@groups.io <MSAccessProfessionals@groups.io> on behalf of crystal (strive4peace) via groups.io <strive4peace2008=yahoo.com@groups.io>
Sent: Tuesday, December 13, 2022 2:48 PM
To: MSAccessProfessionals@groups.io <MSAccessProfessionals@groups.io>
Subject: Re: [MSAccessProfessionals] Basing an Expression off of Another Expression?
 

Rabu, 21 Desember 2022

Re: [MSAccessProfessionals] Basing an Expression off of Another Expression?

Hi Crystal, 

Do any of these databases allow the snow persons to throw snowballs at another snow person?   I like to have animation in my reports.  And I want them to yell, "Heads up!"

Happy Holidays.

David

From: MSAccessProfessionals@groups.io <MSAccessProfessionals@groups.io> on behalf of crystal (strive4peace) via groups.io <strive4peace2008=yahoo.com@groups.io>
Sent: Tuesday, December 13, 2022 2:48 PM
To: MSAccessProfessionals@groups.io <MSAccessProfessionals@groups.io>
Subject: Re: [MSAccessProfessionals] Basing an Expression off of Another Expression?
 

Welcome, Penny

adding on to Duane's suggestion. If you're reporting, another suggestion is:

(AddressComplete + " ") & (StreetNumber + " ") & (StreetDirection + " ") & StreetName

... that will show whatever is there ... and maybe it needs fixin' ;)

* removed spaces in fieldnames and made ProperCase ... as they should also be in the table design too

* also took advantage of Null Propagation

kind regards,
crystal

On 12/13/2022 12:31 PM, Duane Hookom wrote:
There is a Nz() function that might work:
New Address: Nz(ADDR, [Address Complete])
If ADDR is null then use the other field.

Duane


Price, Penny E. - DSD Admin Support Asst III


Hi Everyone!

 

I am wanting to update one of my databases to change how the address is input ….initially I had several fields that I used to signify an address. There was the Street Number (2244), the Street Direction (W), And the Street Name (Colfax Ave).  Since I often needed the entire address to refer to, I created a concatenated address as an Expression and named it ADDR.

 

Although hitting that Enter Key between the original fields doesn't slow my roll any, it does so for other potential users.  I created a New Field named ADDRESS COMPLETE into which the entire address can be entered.  HOWEVER: I still want to have one place that contains the entire address whether it was entered the old way (the 3 separate Fields) or the new way (into the New Field named  ADDRESS COMPLETE).

 

Is there a way to build a New Expression (NEW ADDR), based off whether the Old Expression (ADDR), has an address in it or not. If any of the previously mentioned concatenated fields are filled out, then this expression  should give the info (ADDR).,  otherwise the expression should show the results from the New Field (ADDRESS COMPLETE).   I've tried various iterations of the following but I always get an error.  Is this doable? Thanks Everybody and Happy Holidays to All!

 

NEW ADDRESS: IIf(IsNull([ADDR]),[[ADDRESS COMPLETE]),[ADDR]

Sabtu, 17 Desember 2022

Re: [MSAccessProfessionals] Basing an Expression off of Another Expression?

Hi Penny

I think the problem is that ADDR can NEVER be Null.  ADDR is derived from this expression:

[ADDR Comm] & " " & [ADDR Number ] & " " & [ADDR St Dir ] & " " & [ADDR Street ] & "   " & [Cross St Comm] & "   " & [Cross St Dir] & " " & [Cross St] & "  " & [Cross St 2 Comm] & " " & [Cross St 2 Dir] & " " & [Cross St 2] & " " & [Precinct]

Even if all the component fields ([ADDR Comm], [ADDR Number ], etc) are Null, the resulting expression will still contain all the spaces you have concatenated into the expression between the Null fields, so the final result will be "               " – 15 spaces, if my count is correct!  Of course, you can't see these spaces in the output of your query, but they are there all the same.

You could use the Trim() function to remove leading and trailing spaces from the result:

ADDR: Trim([ADDR Comm] & " " & [ADDR Number ] & " " & [ADDR St Dir ] & " " & [ADDR Street ] & "   " & [Cross St Comm] & "   " & [Cross St Dir] & " " & [Cross St] & "  " & [Cross St 2 Comm] & " " & [Cross St 2 Dir] & " " & [Cross St 2] & " " & [Precinct])

… but the result will still not be Null – it will be an empty, or "zero-length" string (ZLS).  It test for this, IsNull will not work, so you must use Len(<string>)=0 or <string>=""

NEW ADDRESS: IIf(Len([ADDR])=0,[ADDRESS COMPLETE]),[ADDR])

If you really want ADDR to be Null if all its components are Null, then you can use a trick that exploits a subtle difference between the & and + operators.  It goes like this:

Null & "some string" -> "some string"
and
"some string" + "some string" -> "some stringsomestring"
but
Null + "some string" -> Null
Also:
Null & Null -> Null

In other words, + behaves the same way as & unless one of the operands is Null, in which case the result is Null.

You can then combine that with brackets in the expression:

(Null + "string1") & (Null + "string2") & (Null + "string1") -> Null
but
(Null + "string1") & ("ABC" + "string2") & (Null + "string1") -> "ABCstring2"

Putting all this together, you could change your original expression like this:

ADDR: ([ADDR Comm] + " ") & ([ADDR Number ] + " ") & ([ADDR St Dir ] + " ") & ([ADDR Street ] + "   ") & ([Cross St Comm] + "   ") & ([Cross St Dir] + " ") & ([Cross St] + "  ") & ([Cross St 2 Comm] + " ") & ([Cross St 2 Dir] + " ") & ([Cross St 2] + " ") & [Precinct]

That way, ADDR will truly give Null if all the components are Null.  It will also have the advantage of removing all the unwanted spaces between components if some, but not all of them are Null.

I hope this has given you some ideas!

Best wishes,
Graham

 

From: MSAccessProfessionals@groups.io <MSAccessProfessionals@groups.io> On Behalf Of Duane Hookom
Sent: Friday, 16 December 2022 06:30
To: MSAccessProfessionals@groups.io
Subject: Re: [MSAccessProfessionals] Basing an Expression off of Another Expression?

 

Hi Penny,

I wonder if you are using the expression:

NEW ADDRESS: IIf(IsNull([ADDR]),[[ADDRESS COMPLETE]),[ADDR]

in the same query as you are defining ADDR? The "ADDR" is referred to as an "Alias". I never use an alias in an expression in the same query as it is created. I always repeat the complete calculation rather than the alias. Also, ADDR will never be Null based on your concatenation which returns at least 10 spaces even if all the combined fields are null. In the following expression, if [ADDRESS COMPLETE] is null, the concatenation will be displayed. 

 

NEW ADDRESS: Nz([ADDRESS COMPLETE],[ADDR Comm] & " " & [ADDR Number ] & " " & [ADDR St Dir ] & " " & [ADDR Street ] & "   " & [Cross St Comm] & "   " & [Cross St Dir] & " " & [Cross St] & "  " & [Cross St 2 Comm] & " " & [Cross St 2 Dir] & " " & [Cross St 2] & " " & [Precinct])



Duane

 

 


From:  Price, Penny E.

 

Subject: Re: [MSAccessProfessionals] Basing an Expression off of Another Expression?

 

Hi Duane!

 

Yes, in the Query that runs my main Form,  ADDR is a Field (Expression?).  It's a concatenation of multiple fields.  NEW ADDR is also a Field (Expression?) that I'm trying to create which will show the information form ADDRESS COMPLETE ( Field) if there is anything entered there, or will otherwise show the concatenated address contained in ADDR.

 

In the Query it looks like this:

 

ADDR: [ADDR Comm] & " " & [ADDR Number ] & " " & [ADDR St Dir ] & " " & [ADDR Street ] & "   " & [Cross St Comm] & "   " & [Cross St Dir] & " " & [Cross St] & "  " & [Cross St 2 Comm] & " " & [Cross St 2 Dir] & " " & [Cross St 2] & " " & [Precinct]

 

Crystal has also been trying to help me with this one.  She made the very valid complaint that my Field Names should not have any spaces, which is of course true, but unfortunately my dyslexic brain can't seem to read them when I write them that way! I know. My bad!  She did show some concatenated information to me based on the abbreviated info I had previously shown that is contained in ADDR. I still couldn't wrap my head around creating the entire expression though I had thought I might have to use the concatenated info rather than the Expression (Field?) ADDR.

 

For the most part, I've never had any problems with this database. (IT has confirmed this to me on several occasions! Ha ha!) Right now I'm just trying to refine it a bit so I can retire some day and hopefully users who have no experience other than inputting info into a database will be able to run it smoothly in my absence!  New Orleans is calling me!!

 

Best Wishes to All!

 

Penny

 

From: Duane Hookom

 

Subject: [EXTERNAL] Re: [MSAccessProfessionals] Basing an Expression off of Another Expression?

 

 

Hi Penny,

 

Is ADDR a calculated field in the table design? Is it actually stored in the table or just displayed in a query or text box?

 

There is a difference between Null and a zero-length-string. 

 

Duane

 


From: Price, Penny E.

 

Hi Duane,

 

Thanks for the suggestion, but I still couldn't get it to quite work.  If the Old Expression (ADDR) had content then the New Expression (NEW ADDR) has the correct information. But if the New Field (ADDRESS COMPLETE) has an entry then nothing shows up in the Nex Expression (NEW ADDR).  I'm baffled!

 

Any other ideas?

 

 

From: Duane Hookom

 

There is a Nz() function that might work:

New Address: Nz(ADDR, [Address Complete])

If ADDR is null then use the other field.

 

Duane

 

Price, Penny E. - DSD Admin Support Asst III



Hi Everyone!

 

I am wanting to update one of my databases to change how the address is input ….initially I had several fields that I used to signify an address. There was the Street Number (2244), the Street Direction (W), And the Street Name (Colfax Ave).  Since I often needed the entire address to refer to, I created a concatenated address as an Expression and named it ADDR.

 

Although hitting that Enter Key between the original fields doesn't slow my roll any, it does so for other potential users.  I created a New Field named ADDRESS COMPLETE into which the entire address can be entered.  HOWEVER: I still want to have one place that contains the entire address whether it was entered the old way (the 3 separate Fields) or the new way (into the New Field named  ADDRESS COMPLETE).

 

Is there a way to build a New Expression (NEW ADDR), based off whether the Old Expression (ADDR), has an address in it or not. If any of the previously mentioned concatenated fields are filled out, then this expression  should give the info (ADDR).,  otherwise the expression should show the results from the New Field (ADDRESS COMPLETE).   I've tried various iterations of the following but I always get an error.  Is this doable? Thanks Everybody and Happy Holidays to All!

 

NEW ADDRESS: IIf(IsNull([ADDR]),[[ADDRESS COMPLETE]),[ADDR]

_._

Kamis, 15 Desember 2022

Re: [MSAccessProfessionals] Basing an Expression off of Another Expression?

Hi Penny,
I wonder if you are using the expression:
NEW ADDRESS: IIf(IsNull([ADDR]),[[ADDRESS COMPLETE]),[ADDR]
in the same query as you are defining ADDR? The "ADDR" is referred to as an "Alias". I never use an alias in an expression in the same query as it is created. I always repeat the complete calculation rather than the alias. Also, ADDR will never be Null based on your concatenation which returns at least 10 spaces even if all the combined fields are null. In the following expression, if [ADDRESS COMPLETE] is null, the concatenation will be displayed. 

NEW ADDRESS: Nz([ADDRESS COMPLETE],[ADDR Comm] & " " & [ADDR Number ] & " " & [ADDR St Dir ] & " " & [ADDR Street ] & "   " & [Cross St Comm] & "   " & [Cross St Dir] & " " & [Cross St] & "  " & [Cross St 2 Comm] & " " & [Cross St 2 Dir] & " " & [Cross St 2] & " " & [Precinct])

Duane



From:  Price, Penny E.

Subject: Re: [MSAccessProfessionals] Basing an Expression off of Another Expression?
 

Hi Duane!

 

Yes, in the Query that runs my main Form,  ADDR is a Field (Expression?).  It's a concatenation of multiple fields.  NEW ADDR is also a Field (Expression?) that I'm trying to create which will show the information form ADDRESS COMPLETE ( Field) if there is anything entered there, or will otherwise show the concatenated address contained in ADDR.

 

In the Query it looks like this:

 

ADDR: [ADDR Comm] & " " & [ADDR Number ] & " " & [ADDR St Dir ] & " " & [ADDR Street ] & "   " & [Cross St Comm] & "   " & [Cross St Dir] & " " & [Cross St] & "  " & [Cross St 2 Comm] & " " & [Cross St 2 Dir] & " " & [Cross St 2] & " " & [Precinct]

 

Crystal has also been trying to help me with this one.  She made the very valid complaint that my Field Names should not have any spaces, which is of course true, but unfortunately my dyslexic brain can't seem to read them when I write them that way! I know. My bad!  She did show some concatenated information to me based on the abbreviated info I had previously shown that is contained in ADDR. I still couldn't wrap my head around creating the entire expression though I had thought I might have to use the concatenated info rather than the Expression (Field?) ADDR.

 

For the most part, I've never had any problems with this database. (IT has confirmed this to me on several occasions! Ha ha!) Right now I'm just trying to refine it a bit so I can retire some day and hopefully users who have no experience other than inputting info into a database will be able to run it smoothly in my absence!  New Orleans is calling me!!

 

Best Wishes to All!

 

Penny

 

From: Duane Hookom


Subject: [EXTERNAL] Re: [MSAccessProfessionals] Basing an Expression off of Another Expression?

 


Hi Penny,

 

Is ADDR a calculated field in the table design? Is it actually stored in the table or just displayed in a query or text box?

 

There is a difference between Null and a zero-length-string. 

 

Duane

 


From: Price, Penny E.

 

Hi Duane,

 

Thanks for the suggestion, but I still couldn't get it to quite work.  If the Old Expression (ADDR) had content then the New Expression (NEW ADDR) has the correct information. But if the New Field (ADDRESS COMPLETE) has an entry then nothing shows up in the Nex Expression (NEW ADDR).  I'm baffled!

 

Any other ideas?

 

 

From: Duane Hookom


There is a Nz() function that might work:

New Address: Nz(ADDR, [Address Complete])

If ADDR is null then use the other field.

 

Duane

 

Price, Penny E. - DSD Admin Support Asst III



Hi Everyone!

 

I am wanting to update one of my databases to change how the address is input ….initially I had several fields that I used to signify an address. There was the Street Number (2244), the Street Direction (W), And the Street Name (Colfax Ave).  Since I often needed the entire address to refer to, I created a concatenated address as an Expression and named it ADDR.

 

Although hitting that Enter Key between the original fields doesn't slow my roll any, it does so for other potential users.  I created a New Field named ADDRESS COMPLETE into which the entire address can be entered.  HOWEVER: I still want to have one place that contains the entire address whether it was entered the old way (the 3 separate Fields) or the new way (into the New Field named  ADDRESS COMPLETE).

 

Is there a way to build a New Expression (NEW ADDR), based off whether the Old Expression (ADDR), has an address in it or not. If any of the previously mentioned concatenated fields are filled out, then this expression  should give the info (ADDR).,  otherwise the expression should show the results from the New Field (ADDRESS COMPLETE).   I've tried various iterations of the following but I always get an error.  Is this doable? Thanks Everybody and Happy Holidays to All!

 

NEW ADDRESS: IIf(IsNull([ADDR]),[[ADDRESS COMPLETE]),[ADDR]

_._

Re: [MSAccessProfessionals] Save report with First_Name & Last_Name in PDF format

this isn't posted on the website yet, but will be .... sometime ... ~crystal

'***************** Code Start  VBA7 32/64 **************  'modified from code originally written by Ken Getz.  'It is not to be altered or distributed,  'except as part of an application.  'You are free to use it in any application,  'provided the copyright notice is left unchanged.  '  ' Code courtesy of:  '   Microsoft Access 95 How-To  ' Ken Getz and Paul Litwin  ' Waite Group Press, 1996  '  ' ----- December 2022 modified for VBA7 32/64  '  by Peter Cole (TMD, ThemeMyDatabase.co.uk)  '  and Crystal Long (strive4peace, msAccessGurus.com)  '  Many changed statements not commented for adjustment to VBA7.  '  Parameter and Type names remain the same for backward compatibility  '     (see commment below code)  '  ' API: Call the standard Windows File Open/Save dialog box  '     http://www.theaccessweb.com/api/api0001.htm  '  Type tagOPENFILENAME     lStructSize As Long     hWndOwner As LongPtr     hInstance As LongPtr     strFilter As String     strCustomFilter As String     nMaxCustFilter As Long     nFilterIndex As Long     strFile As String     nMaxFile As Long     strFileTitle As String     nMaxFileTitle As Long     strInitialDir As String     strTitle As String     Flags As Long     nFileOffset As Integer     nFileExtension As Integer     strDefExt As String     lCustData As LongPtr     lpfnHook As LongPtr     lpTemplateName As String     '#if (_WIN32_WINNT >= 0x0500) '+    pvReserved As LongPtr    '+    dwReserved As Long    '+    FlagsEx As Long    '+    '

Re: [MSAccessProfessionals] Save report with First_Name & Last_Name in PDF format

Hello Crystal,
I haven't been well the past few days so I haven't been on here for a while. :(
I just realised that the computer I'm using now is 64-bit so perhaps that's what wrong with my old code!
Can you show me the adjusted code for 64-bit please?

Regards,
Lou
_._,_._,_

Groups.io Links:

You receive all messages sent to this group.

View/Reply Online (#116341) | Reply To Group | Reply To Sender | Mute This Topic | New Topic
Your Subscription | Contact Group Owner | Unsubscribe [sugeng.panjalu.access@blogger.com]

_._,_._,_

Rabu, 14 Desember 2022

Re: [MSAccessProfessionals] Version 2007 to Version 2021

Thank you, Mark, that's exactly what I needed to know.  Smiles, Nancy
_._,_._,_

Groups.io Links:

You receive all messages sent to this group.

View/Reply Online (#116340) | Reply To Group | Reply To Sender | Mute This Topic | New Topic
Your Subscription | Contact Group Owner | Unsubscribe [sugeng.panjalu.access@blogger.com]

_._,_._,_

Re: [MSAccessProfessionals] Version 2007 to Version 2021

Short answer: yes. but there will be a format conversion that won't be backwards-compatible. so you can't convert it until you are converting ALL your Db client PCs to the new Office version also.

...and there may be some things that won't be supported anymore.
Certain webclasses, and other internet-oriented features have been deprecated in versions between 2007 and now.

On 12/15/2022 12:32 AM NancyAriz <twohadaways@gmail.com> wrote:


I currently have Access 2007.  If I purchase Access 2021, will I be able to read my "old" version 2007 files? 

Thank you, Nancy

[MSAccessProfessionals] Version 2007 to Version 2021

I currently have Access 2007.  If I purchase Access 2021, will I be able to read my "old" version 2007 files? 

Thank you, Nancy
_._,_._,_

Groups.io Links:

You receive all messages sent to this group.

View/Reply Online (#116338) | Reply To Group | Reply To Sender | Mute This Topic | New Topic
Your Subscription | Contact Group Owner | Unsubscribe [sugeng.panjalu.access@blogger.com]

_._,_._,_

Re: [MSAccessProfessionals] Basing an Expression off of Another Expression?

Hi Duane!

 

Yes, in the Query that runs my main Form,  ADDR is a Field (Expression?).  It's a concatenation of multiple fields.  NEW ADDR is also a Field (Expression?) that I'm trying to create which will show the information form ADDRESS COMPLETE ( Field) if there is anything entered there, or will otherwise show the concatenated address contained in ADDR.

 

In the Query it looks like this:

 

ADDR: [ADDR Comm] & " " & [ADDR Number ] & " " & [ADDR St Dir ] & " " & [ADDR Street ] & "   " & [Cross St Comm] & "   " & [Cross St Dir] & " " & [Cross St] & "  " & [Cross St 2 Comm] & " " & [Cross St 2 Dir] & " " & [Cross St 2] & " " & [Precinct]

 

Crystal has also been trying to help me with this one.  She made the very valid complaint that my Field Names should not have any spaces, which is of course true, but unfortunately my dyslexic brain can't seem to read them when I write them that way! I know. My bad!  She did show some concatenated information to me based on the abbreviated info I had previously shown that is contained in ADDR. I still couldn't wrap my head around creating the entire expression though I had thought I might have to use the concatenated info rather than the Expression (Field?) ADDR.

 

For the most part, I've never had any problems with this database. (IT has confirmed this to me on several occasions! Ha ha!) Right now I'm just trying to refine it a bit so I can retire some day and hopefully users who have no experience other than inputting info into a database will be able to run it smoothly in my absence!  New Orleans is calling me!!

 

Best Wishes to All!

 

Penny

 

From: MSAccessProfessionals@groups.io <MSAccessProfessionals@groups.io> On Behalf Of Duane Hookom
Sent: Tuesday, December 13, 2022 5:19 PM
To: MSAccessProfessionals@groups.io
Subject: [EXTERNAL] Re: [MSAccessProfessionals] Basing an Expression off of Another Expression?

 



Hi Penny,

 

Is ADDR a calculated field in the table design? Is it actually stored in the table or just displayed in a query or text box?

 

There is a difference between Null and a zero-length-string. 

 

Duane

 


From: MSAccessProfessionals@groups.io <MSAccessProfessionals@groups.io> on behalf of Price, Penny E. - DSD Admin Support Asst III via groups.io <penny.price=denvergov.org@groups.io>
Sent: Tuesday, December 13, 2022 1:18 PM
To: MSAccessProfessionals@groups.io <MSAccessProfessionals@groups.io>
Subject: Re: [MSAccessProfessionals] Basing an Expression off of Another Expression?

 

 

Hi Duane,

 

Thanks for the suggestion, but I still couldn't get it to quite work.  If the Old Expression (ADDR) had content then the New Expression (NEW ADDR) has the correct information. But if the New Field (ADDRESS COMPLETE) has an entry then nothing shows up in the Nex Expression (NEW ADDR).  I'm baffled!

 

Any other ideas?

 

 

From: MSAccessProfessionals@groups.io <MSAccessProfessionals@groups.io> On Behalf Of Duane Hookom
Sent: Tuesday, December 13, 2022 11:32 AM
To: MSAccessProfessionals@groups.io
Subject: [EXTERNAL] Re: [MSAccessProfessionals] Basing an Expression off of Another Expression?

 

There is a Nz() function that might work:

New Address: Nz(ADDR, [Address Complete])

If ADDR is null then use the other field.

 

Duane

 

Price, Penny E. - DSD Admin Support Asst III



Hi Everyone!

 

I am wanting to update one of my databases to change how the address is input ….initially I had several fields that I used to signify an address. There was the Street Number (2244), the Street Direction (W), And the Street Name (Colfax Ave).  Since I often needed the entire address to refer to, I created a concatenated address as an Expression and named it ADDR.

 

Although hitting that Enter Key between the original fields doesn't slow my roll any, it does so for other potential users.  I created a New Field named ADDRESS COMPLETE into which the entire address can be entered.  HOWEVER: I still want to have one place that contains the entire address whether it was entered the old way (the 3 separate Fields) or the new way (into the New Field named  ADDRESS COMPLETE).

 

Is there a way to build a New Expression (NEW ADDR), based off whether the Old Expression (ADDR), has an address in it or not. If any of the previously mentioned concatenated fields are filled out, then this expression  should give the info (ADDR).,  otherwise the expression should show the results from the New Field (ADDRESS COMPLETE).   I've tried various iterations of the following but I always get an error.  Is this doable? Thanks Everybody and Happy Holidays to All!

 

NEW ADDRESS: IIf(IsNull([ADDR]),[[ADDRESS COMPLETE]),[ADDR]