🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.bazy-danych.msaccess
3 messages
3 total messages Started by Krzysztof Ż Thu, 23 Jun 2016 09:20
Formularz
#137217
Author: Krzysztof Ż
Date: Thu, 23 Jun 2016 09:20
7 lines
1488 bytes
Witam
Mam pewien problem ,chodzi o odczytywanie danych z tabeli.

Typ zaznaczenia pole listy
Pobiera dane z tabeli A ,która zawiera klientów

Ma to działać tak że po dwukrotnym kliknięciu na firmę X wyświetli mi dane tej formy ,niestety pokazuje tylko pierwszy rekord ,wie ktoś może jak mam to zdefiniować w visual basic żeby działało to tak jakbym chciał?
Re: Formularz
#137218
Author: LeszekN
Date: Thu, 23 Jun 2016 09:55
9 lines
1544 bytes
Private Sub MiejsceKlikniecia_DblClick(Cancel As Integer)
    Dim stDocName As String
    Dim stLinkCriteria As String
        stDocName = "frmFirma"
        stLinkCriteria = "[IDfirmy]=" & Me![IDfirma]
        DoCmd.OpenForm stDocName, , , stLinkCriteria, , acWindowNormal
end sub

Leszek 
Re: Formularz
#137219
Author: nearkrzysiu
Date: Thu, 23 Jun 2016 10:12
12 lines
1702 bytes
W dniu czwartek, 23 czerwca 2016 11:55:54 UTC+2 użytkownik LeszekN napisał:
> Private Sub MiejsceKlikniecia_DblClick(Cancel As Integer)
>     Dim stDocName As String
>     Dim stLinkCriteria As String
>         stDocName = "frmFirma"
>         stLinkCriteria = "[IDfirmy]=" & Me![IDfirma]
>         DoCmd.OpenForm stDocName, , , stLinkCriteria, , acWindowNormal
> end sub
> 
> Leszek

Dzięki o to chodziło. :)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads