pinkpanther6666
Board Regular
- Joined
- Feb 13, 2008
- Messages
- 194
- Office Version
- 365
- Platform
- Windows
I have a text box on my subform that i would like to be filled with Data from a table via the Dlookup Command.
My table is
Table Name -----> Player
Field ..............ID.................AutoNumber
Field ...............Team............Looks Up Vale in another table
Field ...............PlayerName...Text Box
Field ...............XYZ...............Text Box
Subform --------->frmMain
Text93..............Textbox .........Wants the value of XYZ from the table Player
Combo2............ComboBox.......Contains the PlayersName
What i would like to happen is i select the player using combo2 and the value of XYZ from the Player table appears in this text box.
I have tried and tried with various combinations using the Dlookup command and cant get it to work.
i have set up another "dummy" database and i can get it to work but the only change is that combo2 is a text box
I dont know if that has anything to do with it.
many many thanks to anyone that can help me with this please
Steve
My table is
Table Name -----> Player
Field ..............ID.................AutoNumber
Field ...............Team............Looks Up Vale in another table
Field ...............PlayerName...Text Box
Field ...............XYZ...............Text Box
Subform --------->frmMain
Text93..............Textbox .........Wants the value of XYZ from the table Player
Combo2............ComboBox.......Contains the PlayersName
What i would like to happen is i select the player using combo2 and the value of XYZ from the Player table appears in this text box.
I have tried and tried with various combinations using the Dlookup command and cant get it to work.
i have set up another "dummy" database and i can get it to work but the only change is that combo2 is a text box
I dont know if that has anything to do with it.
many many thanks to anyone that can help me with this please
Steve
Last edited: