lee.copper
New Member
Still very new and I could be completely wrong with what I am doing.
I need to limit the information that is being returned so I need a where data statement. I have proved this by manually specifying one of the parameters but for the life of me I cannot figure out what the variable is.
So, I have two tables the first is my list of birds and each bird is given a unique id called ID. The second table contains weight which are logged on a daily basis, this table has a date, weight and the id of the bird.
With no WHERE specified the form works but it returns all the weights for all the birds. If I add the where statement and set it to = 1, my form then returns the value of bird 1. When I then open the form again as bird 2 it still gets the weight for bird 1 because that is whats specified in the WHERE statement. What I need to know to set the value of 1 to the variable that matches the bird being viewed.
I hope that all makes sense.
I need to limit the information that is being returned so I need a where data statement. I have proved this by manually specifying one of the parameters but for the life of me I cannot figure out what the variable is.
So, I have two tables the first is my list of birds and each bird is given a unique id called ID. The second table contains weight which are logged on a daily basis, this table has a date, weight and the id of the bird.
With no WHERE specified the form works but it returns all the weights for all the birds. If I add the where statement and set it to = 1, my form then returns the value of bird 1. When I then open the form again as bird 2 it still gets the weight for bird 1 because that is whats specified in the WHERE statement. What I need to know to set the value of 1 to the variable that matches the bird being viewed.
I hope that all makes sense.