Hello,
I would appreciate some better understanding of the proper syntax for lookups/dcounts etc
I always struggle, In this particular case I have....
Ideally, I would not use my "JunkPath" and use CategoryPath instead but this cause an error.
The only way I can get this to work is by creating a text box on my form with the name JunkPath with no control source
I have searched and searched but must not be using the right keywords.
Does anyone have a resource with examples? I would appreciate a fix for this instance but want to stop struggling with my syntax.
Thank you!
Scott
I would appreciate some better understanding of the proper syntax for lookups/dcounts etc
I always struggle, In this particular case I have....
Code:
Dim CategoryPath
CategoryPath = CatBase & "/" & Me.Category1 & "/" & Me.Category2 & "/" & Me.Category3
JunkPath = CategoryPath
DoesCategoryExist = DCount("[CatName]", "TblMagCategory", "[CatName] = [Category3] AND [Path] = [JunkPath] ")
Ideally, I would not use my "JunkPath" and use CategoryPath instead but this cause an error.
The only way I can get this to work is by creating a text box on my form with the name JunkPath with no control source
I have searched and searched but must not be using the right keywords.
Does anyone have a resource with examples? I would appreciate a fix for this instance but want to stop struggling with my syntax.
Thank you!
Scott