Hi all,
Summary: I've produced a form that allows users to easily select criteria via combos on a form which I can use to build a SQL string.
I'm basically using a SQL string that selects everything and then plonking WHERE clauses on the end dependant on user selections from those combos.
I then want to pass this string to a form that will use the string as it's recordsource and display the data with the user selected criteria.
Problem is, the string is larger than 255 chars (a string being restricted to 255).
I'm using the standard wizard to create the button to run the form and then editing it so that stLinkCriteria passes the SQL string over (partially at the moment).
Any way of getting around this?
My only idea is creating a query object at runtime - but is this possible?
Could I use a memo data-type even?
Any pointers appreciated; solution gets as many stars as I can give 'em ;-)
Thanks all and ATB,
Darrylle
"Never argue with an idiot, he'll bring you down to his level - then beat you with experience." darrylles@totalise.co.uk
Summary: I've produced a form that allows users to easily select criteria via combos on a form which I can use to build a SQL string.
I'm basically using a SQL string that selects everything and then plonking WHERE clauses on the end dependant on user selections from those combos.
I then want to pass this string to a form that will use the string as it's recordsource and display the data with the user selected criteria.
Problem is, the string is larger than 255 chars (a string being restricted to 255).
I'm using the standard wizard to create the button to run the form and then editing it so that stLinkCriteria passes the SQL string over (partially at the moment).
Any way of getting around this?
My only idea is creating a query object at runtime - but is this possible?
Could I use a memo data-type even?
Any pointers appreciated; solution gets as many stars as I can give 'em ;-)
Thanks all and ATB,
Darrylle
"Never argue with an idiot, he'll bring you down to his level - then beat you with experience." darrylles@totalise.co.uk