In my procedure I want to select content of "status" (text) column where "id_status" (number) = "spr_skrocony_obieg" (variable as long)
How should I write procedure of this case?
How should I write procedure of this case?
Code:
dim strSQL as string
dim spr_skrocony_obieg as long
dim db as DAO.Database
Set db = CurrentDb
spr_skrocony_obieg = 1
strSQL = "SELECT Status from tblStatus WHERE ID_Status[COLOR="Red"]...[/COLOR] "
CurrentDb.Execute strSQL