Solved DlookUp not working

Manos39

Registered User.
Local time
Today, 09:34
Joined
Feb 14, 2011
Messages
248
Hello
i would like your help..
need texbox to show value [tmimaID] on my form Fr_Athlets, based on
value on table "Tbl_StelehosiTmimaton" and it seems i cant even though i ve tried...
 

Attachments

  • DlookUp .jpg
    DlookUp .jpg
    146.1 KB · Views: 146
  • Refering table.jpg
    Refering table.jpg
    61.6 KB · Views: 113
see this link for how to use dlookup

there are three parameters passed as strings. you have two and not as strings
 
I cant think better please help
 
tried this solution, dont work either

Code:
=DLookUp([tmimaID]![Tbl_StelehosiTmimaton],[athletID]![Tbl_StelehosiTmimaton]=" & [tmimaID] & " And [AthletID]=[Forms]![Fr_Athlets]![atheltID])
 
=Dlookup("tmimiID", "Tbl_StelehosiTmimato", "athlethID = '" & [atheltID] & "'")
 
Thank you but it gives me error
Code:
=DLookUp("tmimaID","Tbl_StelehosiTmimaton","atheltID = '" & [atheltID] & "'")
 

Attachments

  • Refering table values.jpg
    Refering table values.jpg
    62.8 KB · Views: 108
It can help if you explain what error you're receiving.
atheltID is a number then :

Code:
=DLookUp("tmimaID","Tbl_StelehosiTmimaton","atheltID=" & [atheltID])
 
what is the Lookup Table of tmimalID fieldf?
 
It can help if you explain what error you're receiving.
atheltID is a number then :

Code:
=DLookUp("tmimaID","Tbl_StelehosiTmimaton","atheltID=" & [atheltID])
that helped but it returns numbers like 2, 4 , 5 etc
 
On Design View of table Tbl_StelehosiTmimaton, click on Lookup Tab (below panel).
post the SQL of the Rowsource.
2022-03-23_19-19-16.png
 
On Design View of table Tbl_StelehosiTmimaton, click on Lookup Tab (below panel).
post the SQL of the Rowsource.
ok, for tmimaID
Code:
SELECT [Tbl_Tmimata].[tmimaID], [Tbl_Tmimata].[ONOMA] FROM Tbl_Tmimata ORDER BY [tmimaID];

and for athetID
Code:
SELECT [Tbl_Athlets].[atheltID], [Tbl_Athlets].[ΕΠΙΘΕΤΟ], [Tbl_Athlets].[ΟΝΟΜΑ] FROM Tbl_Athlets ORDER BY [atheltID];
 
=Dlookup("Onoma", "tbl_Tmimata", "tmimaID = " & Nz(DLookUp("tmimaID","Tbl_StelehosiTmimaton","atheltID=" & [atheltID]), 0))
 
is there an easy way for disolve problem giving error on when entering data on a new record?
 
with the New Expression, test your form. i think there will be no more error.
 
with the New Expression, test your form. i think there will be no more error.
I ve tested it is superb but when theres no record on form i am asking
 

Attachments

  • error.jpg
    error.jpg
    48.8 KB · Views: 96
what is the RowSource (the SQL string) of the combobox?
 

Users who are viewing this thread

Back
Top Bottom