Guys, im trying to use a Dlookup to get the unique id (integer) from a table.
Im doing a query, to put the result into a textbox.
Dlookup("[Match_ID]", "[tblMatch]",
"Home_Club_ID = [Forms]![frmAdd_Result].[cboHomeTeams] AND Away_Club_ID = [Forms]![frmAdd_Result].[cboAwayTeams]");
So basically,
Form1: HomeTeam
Form1: AwayTeam
On form 2 i need to get the matchID of the record that has the same hometeam and away team that is being displayed on form1.
The hometeam and away teams are in combo boxes.
Im not sure if Dlookup is the correct function to use but if anyone can help, i would really appreciate it
Im doing a query, to put the result into a textbox.
Dlookup("[Match_ID]", "[tblMatch]",
"Home_Club_ID = [Forms]![frmAdd_Result].[cboHomeTeams] AND Away_Club_ID = [Forms]![frmAdd_Result].[cboAwayTeams]");
So basically,
Form1: HomeTeam
Form1: AwayTeam
On form 2 i need to get the matchID of the record that has the same hometeam and away team that is being displayed on form1.
The hometeam and away teams are in combo boxes.
Im not sure if Dlookup is the correct function to use but if anyone can help, i would really appreciate it