Re: How to use SQL variables in VBA
- From: Marshall Barton <marshbarton@xxxxxxxxxx>
- Date: Thu, 30 Mar 2006 17:04:29 -0600
schoultzy wrote:
Hello, I have the following SQL code:
DECLARE draw_num2 int
SELECT draw_num2 = max (draw_num)+ 1 --THIS LINE IS MY PROBLEM
FROM hdx_housing_assign_master
I want to execute this code in Access VBA, however, I am having a
problem understanding how to accomplish this same task in VBA. My
problem is that the variable is manipulated within the SQL statement
and I do not know how to re-produce that functionality in VBA.
I don't know what variety of SQL you are using, but the
"normal" way of doing that is:
SELECT max(draw_num)+ 1 AS draw_num2
--
Marsh
MVP [MS Access]
.
- References:
- How to use SQL variables in VBA
- From: schoultzy
- How to use SQL variables in VBA
- Prev by Date: Re: Help with query
- Next by Date: Re: How to use SQL variables in VBA
- Previous by thread: How to use SQL variables in VBA
- Next by thread: Re: How to use SQL variables in VBA
- Index(es):
Relevant Pages
|
|