Mark -
I was hoping that I could get information that would help me resolve my own problem - which, I believe will be difficult to describe - but no cigar ... so I will try my best, here.
1) I have several database that simply provide me with a complete mailing addess - using separate elements from the database - and the complete address appears in a pop-up window. I can simply copy the address and paste it to a letter, envelope, etc.
2) I copied the following code (which works in several of my databases) and inserted it into the new one that I need it in. The Code is entered in the ViewAddress element - On Element Entry
ViewAddress = First Name
if not @isblank(MI)
{
ViewAddress = ViewAddress + " " + MI
}
If not @isblank(Maiden)
{
ViewAddress = ViewAddress + " " + Maiden
}
ViewAddress = ViewAddress+ " " + Last Name
If not @isblank(Suffix)
{
ViewAddress = ViewAddress+ ", " + Suffix
}
If not @isblank(Company Name)
{
ViewAddress = ViewAddress + @newline() + Company Name
}
ViewAddress = ViewAddress + @newline() + Address1
If not @isblank(Apt)
{
ViewAddress = ViewAddress + ", " + Apt
}
ViewAddress = ViewAddress + @newline() + City + ", " + State + " " + Zip
@fedit
Clear(ViewAddress)
throwfocus(Remarks)
Then, I simply have the following code in the ViewAddress Element - On Element Exit
Clear(ViewAddress)
In the "new" database I am getting a compilation error and don't understand why.
In my efforts to "figure it out" - I went to the original database to look for something named ViewAddress but cannot find it anywhere on the form. Since I am missing the basic concept, I am at a total loss.
To complicate the situation even further I tried to see if coding for the command button would help, and here's what I found.
When I click on property viewer for the Command Button, I see:
Label: Full
Name: stfullAddressLabel
BUT, when I go to property editor (and use F5 to see what's there), I see
Label: Compile
Full
Address
Name: stfullAddressLabel
I see the latter on the button but why the difference between these two?
I cannot find any programming behind the command button.
I feel like I am in the twilight zone (and maybe I am). lol
I hope this gives you enough info to offer some help.
Thanks!