Normal Topic Mass Updated Field (Read 1048 times)
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Mass Updated Field
Sep 23rd, 2011 at 2:22pm
Print Post Print Post  
I have found that when I mass-update a field, it is not recognized the same way as if I enter the information directly.    Is there a way to correct this?

I hope this is sufficient to identify my need; otherwise, I will need to describe precisely what I am doing, which will be rather lengthy. Smiley

  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Mass Updated Field
Reply #1 - Sep 23rd, 2011 at 2:53pm
Print Post Print Post  
Recognized?
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Mass Updated Field
Reply #2 - Sep 23rd, 2011 at 3:39pm
Print Post Print Post  
Erika -

lol - guess you need more info - ok - here goes ....

I have a database that includes the following fields:  Street Address, City, State & Zip

I also have a button (USPS) and when I click on it, it sends the first 3 fields to the US Postal Service Zip + 4 lookup (a website).  It opens the website and walla, there is the correctly formatted address and the zip+4 code.  I simply copy the code and paste it back to my database.  (I have been blessing Bob Hanson all the years that I have been using this feature).

There is also a field, in the database, called Condo Unit which has the apartment # for each apartment in the building.

I added 36 records to the database and put the Condo Unit # for each apartment in that field for each of the 36 records.  (I don't know whether it makes any difference; however, the Condo Unit # is formated as a numeric field).

I then did a mass update to the 36 records to have the address fields properly completed.  Here's the programming I used:

Code
Select All
StreetAddress="6000 NW 64th Ave"+" "+"Apt" + " "+Condo Unit
City = "Tamarac"
State="FL"  
 



When I go to the record and click on the USPS button (to perform the lookup), I get a message that says:

We're sorry! We were unable to process your request.


When I look at the website, I find that the city and state appear correctly; however, the Address field is blank.
(This is what I meant by not "recognized")

One of the things I found I can do - in the database - to resolve this is (1) click on the address field and "cut" the address, (2) click on any other field in the databse (3) go back to the address field and "paste" the information back into the field.

Now when I click on the USPS button, the lookup is performed properly.

This is a lot of work - for something that was extremely simple - and there must be something I can do to "fix" it.

I tried a mass update to simply have the Street Address = Street Address, but that didn't accomplish anything.  My lookup still failed.

Hope this additional info is helpful.

Thanks!

  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Mass Updated Field
Reply #3 - Sep 23rd, 2011 at 4:13pm
Print Post Print Post  
Hello Spencer,

You say that Condo Unit is a number element correct, Take a close look at your StreetAddress data as I'm wondering if it isn't something like.....

6000 NW 64th Ave Apt 25.00000000

If it is then you'll wanna Mass Update the records with the line

Code
Select All
StreetAddress="6000 NW 64th Ave"+" "+"Apt" + " "+@Decimals(Condo Unit, 0) 



-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Mass Updated Field
Reply #4 - Sep 23rd, 2011 at 4:24pm
Print Post Print Post  
Ray -

The address appears absolutely correctly as:  6000 NW 64th Ave Apt 101

It does not have the decimal point and does not have any trailing zeroes.  Even so, I tried the programming, as you suggested, and it did not make any difference.

I had also tried (without success):

Code
Select All
StreetAddress="6000 NW 64th Ave"+" "+"Apt" + " "+@str(Condo Unit)
 



Any other ideas?

Thanks!

  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Mass Updated Field
Reply #5 - Sep 23rd, 2011 at 6:11pm
Print Post Print Post  
Hello Spencer,

Hmm. That's a bit of a stumper. If you can, send the DB and DAT files to support@lantica.com and let me know where your USPS button is located on your form(If it's not in plain sight) and I'll have a look at the raw data and see what changes during copy and paste.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Mass Updated Field
Reply #6 - Sep 23rd, 2011 at 6:48pm
Print Post Print Post  
Ray,

The DB and DAT files are on their way.  I'm looking forward to the solution.

Thanks!
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Mass Updated Field
Reply #7 - Sep 23rd, 2011 at 7:03pm
Print Post Print Post  
Hello Spencer,

Ah okay I see what is going on here. In your StreetAddress element in the On Element Change event you have

Code
Select All
Address1 = StreetAddress 



And you are using Address1 in your USPS code. This is why after a copy and paste the code works.

What you will want to do is run the following code in a Mass Update on the records that are not updated(You could do it on all records as it's not going to hurt anything)

Code
Select All
Address1 = StreetAddress 



After that the button should work correctly for you.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Mass Updated Field
Reply #8 - Sep 23rd, 2011 at 7:27pm
Print Post Print Post  
Ray -

Question!

What is the reddest face you have ever seen?  I guarantee that mine - right now - will beat it.  I just touched my hand to my face and got a third-degree burn on my hand.  lol

Seriously - the Address1 field works "behnd the scenes" so-to-speak and, as a result, I had forgotten all about it.  It probably never would have occurred to me in a million years.

Thanks, so much, for the clear explanation and yet another easy solution.

(Wonder how long it will take for my face to cool down!).

  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Mass Updated Field
Reply #9 - Sep 23rd, 2011 at 8:46pm
Print Post Print Post  
SpencerWulwick wrote on Sep 23rd, 2011 at 7:27pm:
Ray -

Question!

What is the reddest face you have ever seen?  


I would have to say mine after I painted a tractor red(or it may have been my truck can't remember and both are red). Well while painting I had an itch on my cheek and nose driving me crazy cause you can't itch inside those respirators. So went outside took it off, and itched it. and.... yup you guessed it overspray on my hand whole cheek and nose was red for days

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged