|
| Iniciado por guest, 08,jun. 2015 18:11 - 5 respuestas |
| |
| | | |
|
| |
| Publicado el 08,junio 2015 - 18:11 |
Hello,
One month ago I decided to leave programming in Acces and proceed with Windev19 I followed the manual but I encounter a problem:
A tabcontrol with a query and a search parameter on the customer name and also a customer detail screen.
When a put a part of a name in the search string the tabcontrol delivers the right records. Selecting a specific record I want the details of that record in the Customer detail form.
I use the command Open(WIN_CustomerDetail) TableDisplay(TABLE_QRY_Customer,taCurrentSelection)
But the customer detail form remains empty. What am I missing? Any help will be apprecieted very much.
Thanks in advance Best regards
Frank |
| |
| |
| | | |
|
| | |
| |
| Publicado el 08,junio 2015 - 18:55 |
Hi,
TableDisplay is executed when open(WIN) is done, when the window is closed |
| |
| |
| | | |
|
| | |
| |
| Publicado el 08,junio 2015 - 19:59 |
Hi Frank,
If I understand correctly your question, you want to display the DETAILS of a record...
TableDisplay starts a redisplay of your TABLE content (the whole table, inside the table)...
What you need to do : - modify your open statement to send the unique ID of the record to the second window - in the second window, get that unique ID and do a hreadseek(file,key, uniqueID) then a filetoscreen (of course, all of your details fields need to be linked to the corresponding file items
Of course, this is only ONE of several ways of doing this...
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 08,junio 2015 - 21:37 |
Hello Fabrice,
Thank you for your answer. Like you describe it I was used tot do it with vba and access. I will give it a try tomorrow and I keep you informed. Thanks again and best regards
Frank |
| |
| |
| | | |
|
| | |
| |
| Publicado el 12,junio 2015 - 10:12 |
Hello Fabrice,
I understand very well your email, but I can't find out how to tranfer with a variable the custoerID from the tablecontrol tot the code in the window of the customer detail.
I've been looking on the internet for the last 2 days but I do not find any sample.
Where could I find some sample of this action? Thanks in advance Best regards
Frank |
| |
| |
| | | |
|
| | |
| |
| Publicado el 12,junio 2015 - 10:50 |
| |
| |
| | | |
|
| | | | |
| | |
|