G
Guest
Hello
Is it possible to access the text property on a textbox and us it in a query?
I have inherited this access database and it doesn't work, it simply pop-up
an input box where the query needs data from a textbox (tekst28) on a form.
SELECT TOP 1 [Tegn-ID].[Tegn nr], [Tegn-version].[Version nr],
[Tegn-version].Udstedt, [Tegn-version].Initialer, [Tegn-ID].ProjNr,
Projektdata.[Projekt navn]
FROM ([Tegn-ID] LEFT JOIN Projektdata ON [Tegn-ID].ProjNr =
Projektdata.[Ordre nr]) LEFT JOIN [Tegn-version] ON [Tegn-ID].[Tegn nr] =
[Tegn-version].[Tegn nr]
WHERE ((([Tegn-ID].[Tegn nr])="I/O-Disp-" &
[Formularer]![IO_Liste_Main]![Tekst28]))
ORDER BY [Tegn-version].[Version nr] DESC;
Isolated this is the problem
="I/O-Disp-" & [Formularer]![IO_Liste_Main]![Tekst28]))
isn't it possible to do that somehow?
Is it possible to access the text property on a textbox and us it in a query?
I have inherited this access database and it doesn't work, it simply pop-up
an input box where the query needs data from a textbox (tekst28) on a form.
SELECT TOP 1 [Tegn-ID].[Tegn nr], [Tegn-version].[Version nr],
[Tegn-version].Udstedt, [Tegn-version].Initialer, [Tegn-ID].ProjNr,
Projektdata.[Projekt navn]
FROM ([Tegn-ID] LEFT JOIN Projektdata ON [Tegn-ID].ProjNr =
Projektdata.[Ordre nr]) LEFT JOIN [Tegn-version] ON [Tegn-ID].[Tegn nr] =
[Tegn-version].[Tegn nr]
WHERE ((([Tegn-ID].[Tegn nr])="I/O-Disp-" &
[Formularer]![IO_Liste_Main]![Tekst28]))
ORDER BY [Tegn-version].[Version nr] DESC;
Isolated this is the problem
="I/O-Disp-" & [Formularer]![IO_Liste_Main]![Tekst28]))
isn't it possible to do that somehow?