SQL statement doesn't pick up variable

It Works!!! THANK YOU THANK YOU THANK YOU. ...I'm singing to you here.. 😄😃😀:)
Can you share with us what worked? Either way, I am glad you got it working.
 
I used Plog's code. There are some distancing errors but I now have a structure to work from. I very much appreciate all your attention. In the original program the recipes, the ingredients, the menus, the techniques, all worked from a treeview so I've been working on a template to use throughout the program and have struggled for some time until I figured out that distance in the table meant node levels. Part of the problem is there are 90 tables with incredibly long names that I have to figure out how to put together. It's coming though and I have you guys to thank.
 
sorry... not guys... You All!
 
well.... back to the drawing board... On further inspection all recipes on level 3 work, but if the recipe goes to a cookbook with no chapters (level 2) it's missing. Not asking for help; just don't want anyone else to use it....
 
It is not working because you building a statement and concatenating that variable. You get the value of that variable as it is at the time you construct the statement.?
You need to construct the statement each time? AFTER the value is set, not BEFORE
no no... I'm calling the SQL in the Set Recipes statement; AFTER I set the distance.
Think of it as
Living Cookbook by Radium is no longer supported. I lost the program when I upgraded and discovered their database (with all my recipes over many years) was readable by Access. Sort of... Now I'm trying to put this inherited mess together so I can use it.
I take it you explored other avenues first?

 

Users who are viewing this thread

Back
Top Bottom