OldtTimerDon
Programmer
Hi, the Senile Senior is having a problem with a function returning a value.
I have a form that contains an editbox that does not have a controlsource tied to a table. The intent of the edit box is to display data compiled by my FetchIt function. The function is called by FetchIt(acno). This routine captures data from several sources and merges it into a variable cMyText. My goal is to display cMyText in the editbox for a particular client. The editbox is read-only.
Any change in the client viewed produces a corresponding change in the edit box. When there is no corresponding data for a client, the edit box should be blank.
In the Init event for the editbox i call the routine with FetchIt(acno). Because the routine processes other tables, I have a Select (origtable) followed by THIS.Value=cMyText.
The same code is found in the refresh event.
I tried FetchIt(acno, cMyText) and it didn't work. I'm baffled but glad I don't have to bill a client for my time.
What am I doing wrong?
Senile Senior Don
Sun City, AZ
I have a form that contains an editbox that does not have a controlsource tied to a table. The intent of the edit box is to display data compiled by my FetchIt function. The function is called by FetchIt(acno). This routine captures data from several sources and merges it into a variable cMyText. My goal is to display cMyText in the editbox for a particular client. The editbox is read-only.
Any change in the client viewed produces a corresponding change in the edit box. When there is no corresponding data for a client, the edit box should be blank.
In the Init event for the editbox i call the routine with FetchIt(acno). Because the routine processes other tables, I have a Select (origtable) followed by THIS.Value=cMyText.
The same code is found in the refresh event.
I tried FetchIt(acno, cMyText) and it didn't work. I'm baffled but glad I don't have to bill a client for my time.
What am I doing wrong?
Senile Senior Don
Sun City, AZ