<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Bytes - answers</title>
		<link>http://bytes.com</link>
		<description>Microsoft Office Access database and VBA - Get answers to questions about microsoft access queries, reports, forms, macros, modules, security, automation, functions, records, mining, visual basic for applications and more.</description>
		<language>en</language>
		<lastBuildDate>Fri, 20 Nov 2009 22:16:40 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://bytes.com/images/misc/rss.jpg</url>
			<title>Bytes - answers</title>
			<link>http://bytes.com</link>
		</image>
		<item>
			<title>Reserved Error (-1517) when adding new records to table.</title>
			<link>http://bytes.com/topic/access/answers/877377-reserved-error-1517-when-adding-new-records-table</link>
			<pubDate>Fri, 20 Nov 2009 16:38:22 GMT</pubDate>
			<description>I have a form in which I build a list of employees who have attended a training course, then populate new records in a training table based on the...</description>
			<content:encoded><![CDATA[<div>I have a form in which I build a list of employees who have attended a training course, then populate new records in a training table based on the list. There has never been a problem with this routine, yet this morning I went in to create the list for a training that happenned earlier this week, and when VBA hit the DoCmd.RunSQL statement that inserts the new record into the table, it threw up the message:<br />
<br />
Reserved Error (-1517); There is no message for this error.<br />
<br />
So, I re-built the code to use a recordset instead of the RunSQL function.  I just tried to run it and got the same error as soon as it tried to set the value for the first field after the .AddNew statement.<br />
<br />
I have tried and am able to add a record to the table manually, so it's not an issue with permissions on the back-end.<br />
<br />
Anyone have any experience with this? I tried Googling the error and got zip.</div>

]]></content:encoded>
			<category domain="http://bytes.com/topic/access/answers/">answers</category>
			<dc:creator>topher23</dc:creator>
			<guid isPermaLink="true">http://bytes.com/topic/access/answers/877377-reserved-error-1517-when-adding-new-records-table</guid>
		</item>
		<item>
			<title>how to format caracters string to make it compatible whit criteria in a query</title>
			<link>http://bytes.com/topic/access/answers/877372-how-format-caracters-string-make-compatible-whit-criteria-query</link>
			<pubDate>Fri, 20 Nov 2009 16:07:34 GMT</pubDate>
			<description><![CDATA[Good day to every one 
 
Weird question i guest, 
 
I'm using a function as a query criteria, that function simply get the value of a global variable...]]></description>
			<content:encoded><![CDATA[<div>Good day to every one<br />
<br />
Weird question i guest,<br />
<br />
I'm using a function as a query criteria, that function simply get the value of a global variable all this worked of but is seams that ms access does not <br />
understand <br />
<br />
this an example  (it refers to what it beside the quotation marks)<br />
<br />
property = &quot;Between 1 And 98&quot;<br />
<br />
When i type Between 1 And 98 as a criteria in the query design it works OK.<br />
<br />
I can't figure what wrong.<br />
<br />
Thanks for your help.</div>

]]></content:encoded>
			<category domain="http://bytes.com/topic/access/answers/">answers</category>
			<dc:creator>atoy</dc:creator>
			<guid isPermaLink="true">http://bytes.com/topic/access/answers/877372-how-format-caracters-string-make-compatible-whit-criteria-query</guid>
		</item>
		<item>
			<title>Allow user to add a field.</title>
			<link>http://bytes.com/topic/access/answers/877362-allow-user-add-field</link>
			<pubDate>Fri, 20 Nov 2009 12:35:17 GMT</pubDate>
			<description>What is the best method to allow the end user to be able to add a field?  Is there anyway to have a button or something on the form that would allow...</description>
			<content:encoded><![CDATA[<div>What is the best method to allow the end user to be able to add a field?  Is there anyway to have a button or something on the form that would allow the user to create a new field without the user having to mess with the design?</div>

]]></content:encoded>
			<category domain="http://bytes.com/topic/access/answers/">answers</category>
			<dc:creator>MyWaterloo</dc:creator>
			<guid isPermaLink="true">http://bytes.com/topic/access/answers/877362-allow-user-add-field</guid>
		</item>
		<item>
			<title>Delete Query Not Working after Upgrading To SQL Server</title>
			<link>http://bytes.com/topic/access/answers/877348-delete-query-not-working-after-upgrading-sql-server</link>
			<pubDate>Fri, 20 Nov 2009 06:40:29 GMT</pubDate>
			<description><![CDATA[Hi,  
  I have upgraded to SQL Server Express 2005 and now my Delete Querey which was made in MS Access Query Builder is not working. It doesn't give...]]></description>
			<content:encoded><![CDATA[<div>Hi, <br />
  I have upgraded to SQL Server Express 2005 and now my Delete Querey which was made in MS Access Query Builder is not working. It doesn't give any error it just doesn't work:<br />
<br />
If its of any use the SQL in the query is :<br />
<!-- CODE -->
<div id="codeHolder" class="codeHolder" style="width: 500px;">
<div class="codeHeader">
	<span class="codeLink" onclick="Blur(this, this.parentNode.parentNode, getChildren(this),true);">Expand</span><span class="codeDivider">|</span><span class="codeLink" onclick="selectAll(this);">Select</span><span class="codeDivider">|</span><span class="codeLink" onclick="WordWrap(this);">Wrap</span><span class="codeDivider">|</span><span class="codeLink" onclick="LineNumbers(this);">Line Numbers</span>
</div>

<div class="codeContent" style="display: block; width: 500px; white-space: nowrap;">
	<ol START="1" highlight="true">

<li class="codeLI">DELETE&nbsp;tblCollections.MDCollectionID,&nbsp;tblCollections.Delete</li>
<li class="codeLI">
FROM&nbsp;tblCollections</li>
<li class="codeLI">
WHERE&nbsp;(((tblCollections.Delete)=-1));</li>
<li class="codeLI">&nbsp;</li>

	</ol>
</div>
</div>
<!-- /CODE -->


Any Help Would be Greatly Appreciated, I am truly desperate to get this resolved, Thanks.</div>

]]></content:encoded>
			<category domain="http://bytes.com/topic/access/answers/">answers</category>
			<dc:creator>iheartvba</dc:creator>
			<guid isPermaLink="true">http://bytes.com/topic/access/answers/877348-delete-query-not-working-after-upgrading-sql-server</guid>
		</item>
		<item>
			<title>Problem of transferring data from one table to another in the same DB</title>
			<link>http://bytes.com/topic/access/answers/877338-problem-transferring-data-one-table-another-same-db</link>
			<pubDate>Fri, 20 Nov 2009 02:45:39 GMT</pubDate>
			<description>Dear All, 
 
I am facing a problem of transferring data between 2 tables within the same database. 
 
I set up 2 tables. The first table is the...</description>
			<content:encoded><![CDATA[<div>Dear All,<br />
<br />
I am facing a problem of transferring data between 2 tables within the same database.<br />
<br />
I set up 2 tables. The first table is the permanent table (oos_table) for saving records. the other table is a temp table (oos_table_temp) for storing records which all data would be deleted after the data transferred to the permanent table.<br />
<br />
below is the code I am currently using.<br />
<!-- CODE -->
<div id="codeHolder" class="codeHolder" style="width: 500px;">
<div class="codeHeader">
	<span class="codeLink" onclick="Blur(this, this.parentNode.parentNode, getChildren(this),true);">Expand</span><span class="codeDivider">|</span><span class="codeLink" onclick="selectAll(this);">Select</span><span class="codeDivider">|</span><span class="codeLink" onclick="WordWrap(this);">Wrap</span><span class="codeDivider">|</span><span class="codeLink" onclick="LineNumbers(this);">Line Numbers</span>
</div>

<div class="codeContent" style="display: block; width: 500px; white-space: nowrap;">
	<ol START="1" highlight="true">

<li class="codeLI">
Dim&nbsp;strNewTable&nbsp;As&nbsp;String</li>
<li class="codeLI">
Dim&nbsp;strOldTable&nbsp;As&nbsp;String</li>
<li class="codeLI">
strNewTable&nbsp;=&nbsp;&quot;oos_table&quot;&nbsp;&nbsp;</li>
<li class="codeLI">
strOldTable&nbsp;=&nbsp;&quot;oos_table_temp&quot;&nbsp;&nbsp;</li>
<li class="codeLI">&nbsp;</li>
<li class="codeLI">
DoCmd.TransferDatabase&nbsp;acExport,&nbsp;&quot;Microsoft&nbsp;Access&quot;,&nbsp;CurrentDb.Name,&nbsp;acTable,&nbsp;strOldTable,&nbsp;strNewTable,&nbsp;False</li>
<li class="codeLI">&nbsp;</li>

	</ol>
</div>
</div>
<!-- /CODE -->


the above code works in the first time and can transfer all data in the temp table to the permanent one.<br />
<br />
But when doing the second time, the previously data in the permanent table will be replaced by the new temp table data. <br />
<br />
The problem is, I want to keep te previous data in the permanent table and add the data in the temp table to it. not replacing the existing data.<br />
<br />
Could anyone help with this?<br />
<br />
Thanks a million.</div>

]]></content:encoded>
			<category domain="http://bytes.com/topic/access/answers/">answers</category>
			<dc:creator>angusfreefa</dc:creator>
			<guid isPermaLink="true">http://bytes.com/topic/access/answers/877338-problem-transferring-data-one-table-another-same-db</guid>
		</item>
		<item>
			<title>Importing multiple .CSV files.  How to loop?</title>
			<link>http://bytes.com/topic/access/answers/877327-importing-multiple-csv-files-how-loop</link>
			<pubDate>Thu, 19 Nov 2009 20:02:22 GMT</pubDate>
			<description>Hello all, I am new to Access and VBA and hope some of you can point me in the right direction. I am not asking for someone to do my job, I want to...</description>
			<content:encoded><![CDATA[<div>Hello all, I am new to Access and VBA and hope some of you can point me in the right direction. I am not asking for someone to do my job, I want to learn how to do this. <br />
<br />
My task is to automate an access app where a user manualy imports data from printed worksheets. Currently, all this data is also available in .CSV files. I want to do all this though VBA at the click of a button on a user form.<br />
<br />
What I need to do is:<br />
1. Create a temporary table<br />
2. Count all the CSV files in a dir<br />
3. Loop through and Import all CSV files into temporary table.<br />
4. Validate the data then move it into the existing database.<br />
<br />
Thanks for any advice you can provide.</div>

]]></content:encoded>
			<category domain="http://bytes.com/topic/access/answers/">answers</category>
			<dc:creator>Kyrgan</dc:creator>
			<guid isPermaLink="true">http://bytes.com/topic/access/answers/877327-importing-multiple-csv-files-how-loop</guid>
		</item>
		<item>
			<title>CHARTS in Access</title>
			<link>http://bytes.com/topic/access/answers/877326-charts-access</link>
			<pubDate>Thu, 19 Nov 2009 19:34:20 GMT</pubDate>
			<description>I am trying to add charts to forms. For my examples I have chosen fields from tables in Northwind Sample Database. The number of categories in the...</description>
			<content:encoded><![CDATA[<div>I am trying to add charts to forms. For my examples I have chosen fields from tables in Northwind Sample Database. The number of categories in the fields selected could be greater than 20.<br />
<br />
In all the examples I have tried to create ACCESS returns a chart for an ‘East, West, North’ table. The table is a very simple 3 by 4. Could the problem be that ACCESS cannot chart complex data sets and the chart I see uses a default?</div>

]]></content:encoded>
			<category domain="http://bytes.com/topic/access/answers/">answers</category>
			<dc:creator>peter1234</dc:creator>
			<guid isPermaLink="true">http://bytes.com/topic/access/answers/877326-charts-access</guid>
		</item>
		<item>
			<title>Adding additional options to combo box based on SQL statement</title>
			<link>http://bytes.com/topic/access/answers/877322-adding-additional-options-combo-box-based-sql-statement</link>
			<pubDate>Thu, 19 Nov 2009 18:03:54 GMT</pubDate>
			<description><![CDATA[Hello, 
 
Suppose I have combo box that is linked to the following SQL statement: "SELECT DISTINCT Column1 FROM Tbl1;" 
 
Suppose the results are 3...]]></description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
Suppose I have combo box that is linked to the following SQL statement: &quot;SELECT DISTINCT Column1 FROM Tbl1;&quot;<br />
<br />
Suppose the results are 3 fields: Red, Green, Yellow<br />
<br />
What if I wanted to add an additional field (say, Blue) to this list, although it doesn't appear in the table?  I know I can type in the values myself, but I want the combo box to look the table (which is dynamic/changing), and add a few additional options.<br />
<br />
Any advice is very much appreciated.</div>

]]></content:encoded>
			<category domain="http://bytes.com/topic/access/answers/">answers</category>
			<dc:creator>bbatson</dc:creator>
			<guid isPermaLink="true">http://bytes.com/topic/access/answers/877322-adding-additional-options-combo-box-based-sql-statement</guid>
		</item>
		<item>
			<title>How do you put an image in reports without making your file size huge?</title>
			<link>http://bytes.com/topic/access/answers/877321-how-do-you-put-image-reports-without-making-your-file-size-huge</link>
			<pubDate>Thu, 19 Nov 2009 17:53:50 GMT</pubDate>
			<description>I have searched around the net breifly over the last few weeks trying to figure out why Access file sizes increase so dramatically when you put your...</description>
			<content:encoded><![CDATA[<div>I have searched around the net breifly over the last few weeks trying to figure out why Access file sizes increase so dramatically when you put your logo on forms/reports.  I haven't found much on the topic...but I know I can't be the only person having this problem.  When I put a 200KB logo on about 10 forms and 10reports, my file size goes to over 100MB.  Without the logos, the file size is only 3MB.  At this point I have removed the logos but would like to put them back if someone can give me an idea how to do this more efficiently (from a file size perspective).  <br />
<br />
Thanks in advance.</div>

]]></content:encoded>
			<category domain="http://bytes.com/topic/access/answers/">answers</category>
			<dc:creator>DanicaDear</dc:creator>
			<guid isPermaLink="true">http://bytes.com/topic/access/answers/877321-how-do-you-put-image-reports-without-making-your-file-size-huge</guid>
		</item>
		<item>
			<title>Cascading ComboBoxes</title>
			<link>http://bytes.com/topic/access/answers/877324-cascading-comboboxes</link>
			<pubDate>Thu, 19 Nov 2009 17:40:21 GMT</pubDate>
			<description><![CDATA[...You're fast!  I appreciate that.  
 
Thanks! I look forward to your explanation. 
 
One last problem I have on my form is getting all of my...]]></description>
			<content:encoded><![CDATA[<div>...You're fast!  I appreciate that. <br />
<br />
Thanks! I look forward to your explanation.<br />
<br />
One last problem I have on my form is getting all of my comboboxes to update each other.  I know how to update them as a cascade (i.e. Region updates Country which updates State which updates City) but I would like them to be interdependent (i.e. if I select a City, I want the Region, Country, and State comboboxes to populate with the corresponding data.  Hoping to get this effect when I select any of these given boxes.  <br />
<br />
For ease of understanding, let's assume these are all of my comboboxes which correspond to a field of the same name, sans &quot;com&quot;:<br />
comRegion<br />
comCountry<br />
comState<br />
comCity<br />
<br />
Thanks again.  You're a pro.</div>

]]></content:encoded>
			<category domain="http://bytes.com/topic/access/answers/">answers</category>
			<dc:creator>Tarheel</dc:creator>
			<guid isPermaLink="true">http://bytes.com/topic/access/answers/877324-cascading-comboboxes</guid>
		</item>
		<item>
			<title>Web Browser Control only shows 5 events in property sheet</title>
			<link>http://bytes.com/topic/access/answers/877318-web-browser-control-only-shows-5-events-property-sheet</link>
			<pubDate>Thu, 19 Nov 2009 17:06:17 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I'm trying to find an event in the web browser control that triggers when the user clicks on a link inside the control and arrives at a new...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I'm trying to find an event in the web browser control that triggers when the user clicks on a link inside the control and arrives at a new page.<br />
<br />
My web browser control only shows 5 events in the property list: On Updated, On Enter, On Exit, On Got Focus, and On Lost Focus.<br />
<br />
Is this all the events?<br />
<br />
I've tested the On Update event with debug.print, and it does not fire when a user clicks inside the control, or when the user arrives on a new page.<br />
<br />
How do I access more events?<br />
<br />
Thanks,<br />
Adam</div>

]]></content:encoded>
			<category domain="http://bytes.com/topic/access/answers/">answers</category>
			<dc:creator>AdamOnAccess</dc:creator>
			<guid isPermaLink="true">http://bytes.com/topic/access/answers/877318-web-browser-control-only-shows-5-events-property-sheet</guid>
		</item>
		<item>
			<title>Link to Map Site</title>
			<link>http://bytes.com/topic/access/answers/877313-link-map-site</link>
			<pubDate>Thu, 19 Nov 2009 15:04:05 GMT</pubDate>
			<description>I am trying to duplicate an affect I found in a contacts database I downloaded from Access.  There is a little map button that will open up Bing.com...</description>
			<content:encoded><![CDATA[<div>I am trying to duplicate an affect I found in a contacts database I downloaded from Access.  There is a little map button that will open up Bing.com and show the address location of the address of the contact.  I would really like to duplicate this in a database I am working on.  Unfortunately I can't get this function to work.  Has anyone ever done this?  Is there code I can run or a macro?  I tried copying the macro from the example database but it won't work in mine.  How do I tell access to go to a website and enter the address info into the sites search parameters? Any help would be greatly appreciated.</div>

]]></content:encoded>
			<category domain="http://bytes.com/topic/access/answers/">answers</category>
			<dc:creator>MyWaterloo</dc:creator>
			<guid isPermaLink="true">http://bytes.com/topic/access/answers/877313-link-map-site</guid>
		</item>
		<item>
			<title>Validation of Dates</title>
			<link>http://bytes.com/topic/access/answers/877312-validation-dates</link>
			<pubDate>Thu, 19 Nov 2009 14:42:27 GMT</pubDate>
			<description>My table is defined as follows : 
 
Reference      text          Primary Key 
StartDate       date          Primary Key   
EndDate        date       ...</description>
			<content:encoded><![CDATA[<div>My table is defined as follows :<br />
<br />
Reference      text          Primary Key<br />
StartDate       date          Primary Key  <br />
EndDate        date          can be null<br />
<br />
I currently have a row with  : <br />
<br />
Reference = ABC, <br />
StartDate  = 1st Jan 2009, and <br />
EndDate   =  1st November 2009.<br />
<br />
I want my Form to allow me to enter a 2nd row with <br />
Reference = ABC, and <br />
StartDate greater than or equal to the EndDate above.<br />
<br />
If I enter an EndDate prior to this, then I want to display a meaningful message.<br />
<br />
This should be the case for all References, not just ABC.<br />
<br />
Should I do so as a Validation Rule in the table design<br />
Or an ‘on enter’ event in the Form design ?<br />
<br />
And what would the coding look like ?<br />
<br />
Many thanks</div>

]]></content:encoded>
			<category domain="http://bytes.com/topic/access/answers/">answers</category>
			<dc:creator>grinder332518</dc:creator>
			<guid isPermaLink="true">http://bytes.com/topic/access/answers/877312-validation-dates</guid>
		</item>
		<item>
			<title>Charts By Month</title>
			<link>http://bytes.com/topic/access/answers/877308-charts-month</link>
			<pubDate>Thu, 19 Nov 2009 13:51:32 GMT</pubDate>
			<description>I have created several charts of an activity by month using a simple query to aggregate the data. When I do the results only include the months that...</description>
			<content:encoded><![CDATA[<div>I have created several charts of an activity by month using a simple query to aggregate the data. When I do the results only include the months that have data, i.e., if there was no activity for a given month the month is left out of the chart. Is there a way to force the x axis to increment monthly even if the data value for the month is 0? I am using stacked bar charts.<br />
<br />
Thanks<br />
<br />
dnetzley</div>

]]></content:encoded>
			<category domain="http://bytes.com/topic/access/answers/">answers</category>
			<dc:creator>dnetzley</dc:creator>
			<guid isPermaLink="true">http://bytes.com/topic/access/answers/877308-charts-month</guid>
		</item>
		<item>
			<title>Need help ,Using switchboard not able to display chart form</title>
			<link>http://bytes.com/topic/access/answers/877305-need-help-using-switchboard-not-able-display-chart-form</link>
			<pubDate>Thu, 19 Nov 2009 13:04:36 GMT</pubDate>
			<description>Hello all, 
 
    I am new to MS Access VBA 2007, i need help on how to open  a chart form in switchboard. 
       
*SwitchBoard having options to...</description>
			<content:encoded><![CDATA[<div>Hello all,<br />
<br />
    I am new to MS Access VBA 2007, i need help on how to open  a chart form in switchboard.<br />
      <br />
<b>SwitchBoard having options to open a form in Add mode and edit mode, in both of them chart is not displaying. instead its showing text box to enter data on the form. <br />
<br />
I had attached a image file, please have a look at that.<br />
image name 1.jpg--&gt; its showing data when i open this chart form using SwitchBoard<br />
Image name 2.jpg--&gt; its showing chart when i open it by double clicking on form on left side pane.<br />
<br />
 Can anyone of you help me to resolve this issue.</b><br />
<br />
Thanks in advance!<br />
Asif</div>


	<br />
	<div style="padding:6px">

	
		<fieldset class="fieldset">
			<legend>Attached Thumbnails</legend>
			<div style="padding:3px">
			
<a href="http://bytes.com/attachments/attachment/2441d1258635801/1.jpg" rel="Lightbox" id="attachment2441" target="_blank"><img class="thumbnail" src="http://bytes.com/attachments/attachment/2441d1258635801t/1.jpg" border="0" alt="Click image for larger version

Name:	1.jpg
Views:	N/A
Size:	11.2 KB
ID:	2441" /></a>
&nbsp;

<a href="http://bytes.com/attachments/attachment/2442d1258635855/2.jpg" rel="Lightbox" id="attachment2442" target="_blank"><img class="thumbnail" src="http://bytes.com/attachments/attachment/2442d1258635855t/2.jpg" border="0" alt="Click image for larger version

Name:	2.jpg
Views:	N/A
Size:	10.0 KB
ID:	2442" /></a>
&nbsp;

			</div>
		</fieldset>
	

	

	

	

	</div>
]]></content:encoded>
			<category domain="http://bytes.com/topic/access/answers/">answers</category>
			<dc:creator>asifu9</dc:creator>
			<guid isPermaLink="true">http://bytes.com/topic/access/answers/877305-need-help-using-switchboard-not-able-display-chart-form</guid>
		</item>
	</channel>
</rss>
