<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IT Answers &#187; Control</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/control/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Wed, 19 Jun 2013 19:45:47 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Can a command button macro run a make-table query with an auto-inputted parameter value?</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/can-a-command-button-macro-run-a-make-table-query-with-an-auto-inputted-parameter-value/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/can-a-command-button-macro-run-a-make-table-query-with-an-auto-inputted-parameter-value/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 11:46:12 +0000</pubDate>
		<dc:creator>Shdrc</dc:creator>
				<category><![CDATA[append]]></category>
		<category><![CDATA[Control]]></category>
		<category><![CDATA[Form]]></category>
		<category><![CDATA[make-table]]></category>
		<category><![CDATA[parameter]]></category>
		<category><![CDATA[Query]]></category>
		<category><![CDATA[run]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[value]]></category>
		<category><![CDATA[where]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I want to run a make-table query with a parameter, using a command button click event on a form showing a single record. The parameter value needs to be inputted automatically using the value of a control in the current record of the same form. Can this be done with a macro event? If so, [...]]]></description>
				<content:encoded><![CDATA[<p>I want to run a make-table query with a parameter, using a command button click event on a form showing a single record.  The parameter value needs to be inputted automatically using the value of a control in the current record of the same form.  Can this be done with a macro event?  If so, what does the macro look like?  If not, how do I express the WHERE clause of the SQL statement which would run the query in a VBA sub procedure attached to the button?  </p>
<p>Details:  I&#8217;ve got a customer orders table and a customer order details table.  The customer order user input form shows records from the customer order details table as a subform, with the customer order ID as the linking field.  After the details are inputted, I want to post those details to a stock movements table, but need to do some sales unit conversions along the way.  So I&#8217;m trying to run a make-table query which, besides doing some unit and price calculations, only creates records for the current customer order, and then to run an append query which appends these cooked details from the temporary table to the stock movements table (which exists to record the ins and outs needed to create a current stock level for each inventory item).  I tried to append to the stock movements table directly from a select query which did the order details unit conversion calculations , but couldn&#8217;t get calculated query fields to match up with the destination table fields.  Thus the make-table query intermediate step, which needs a parameter so that it doesn&#8217;t recreate the entire customer order details table (potentially infinite in length) each time it runs.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/can-a-command-button-macro-run-a-make-table-query-with-an-auto-inputted-parameter-value/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/14 queries in 0.057 seconds using memcached
Object Caching 333/350 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-20 01:52:13 -->