<?xml version="1.0" encoding="iso-8859-1" ?>
<rss version="2.0">
<channel>
	<title>UtterAccess.com Access Forums</title>
	<description>UtterAccess Access Forums</description>
	<link>http://www.utteraccess.com/forum/home.html</link>
	<pubDate>Wed, 16 May 2012 19:40:40 -0400</pubDate>
	<ttl>15</ttl>
	<item>
		<title>If Anyone Can Resolve This For Me I Will Not Come On Here Again.</title>
		<link>http://www.utteraccess.com/forum/Resolve-Again-t1987176.html</link>
		<description><![CDATA[Hi Could somone please figure this out scratching my head with it now<br /><br />On the Match Date form when I select Home for match type and then enter player name score then opp player Name and score it should auto populate with 2 points if its an away home win and 3 points if it is an away win per player.<br /><br />If my player points at home =21 then my player will receive 2 points and if my player away score is 21 then my player received 3 points.<br /><br />It all works up until i delete the test data to start entering actual data, could someone take a look and try and figure it out please.<br /><br /><br />This works for a bit but when you click on add new match details the points do not auto calculate.]]></description>
		<pubDate>Wed, 16 May 2012 19:17:51 -0400</pubDate>
		<guid>http://www.utteraccess.com/forum/Resolve-Again-t1987176.html</guid>
	</item>
	<item>
		<title>Graphing Issues</title>
		<link>http://www.utteraccess.com/forum/Graphing-Issues-t1987175.html</link>
		<description><![CDATA[My client wants a report with a chart that requires a secondary axis. I can produce such a chart but, quite frankly, it looks awful. Most values on the primary axis are positive but there is one that is a rather large negative. The primary axis is plotted as a column chart. The main problem with this part of the chart is that the axis label falls inside the chart itself. Playing with the offset I am not able to get it to move more than half way to the bottom of the plot area.<br /><br />The secondary plot is also terrible. I have played with colour and weight for the line but cannot get a line joining all the dots. Are there any charting alternatives that will give a more pleasing result?<br /><br />Glenn]]></description>
		<pubDate>Wed, 16 May 2012 18:24:22 -0400</pubDate>
		<guid>http://www.utteraccess.com/forum/Graphing-Issues-t1987175.html</guid>
	</item>
	<item>
		<title>Combo Box Does Not Display All Columns</title>
		<link>http://www.utteraccess.com/forum/Combo-Box-Display-Colu-t1987174.html</link>
		<description><![CDATA[Hello and thank you in advance for your consideration!<br /><br />I have many forms with combo boxes.  Almost all the combo boxes have multiple fields or "columns" like in the attached image 'Combo box w fields.jpg'.<br />However, when you're not in that field, only the first column is displayed; as in the other attached image 'Combo box one field displayed.jpg'.  <br />I would like my users and myself to be able to view all the columns; as in my examples- - Model Number, Rev. and Description.  But only the model number is displayed.<br />I have attached my properties too, just in case.<br /><br />Thanx,<br />Gary]]></description>
		<pubDate>Wed, 16 May 2012 17:52:31 -0400</pubDate>
		<guid>http://www.utteraccess.com/forum/Combo-Box-Display-Colu-t1987174.html</guid>
	</item>
	<item>
		<title>Run Report For All Users</title>
		<link>http://www.utteraccess.com/forum/Run-Report-Users-t1987173.html</link>
		<description><![CDATA[I have a report that pulls information from a query.  Specifically it brings back a   It is run from a form with a dropdown list containing staff member IDs (Id 1,2,3...).<br /><br />From the form fmReports they click on the report, then they select a staff member from a combobox (which is filled by a lookup table), then they hit "Go"<br /><br />'Simple example of query now:<br />Select * from tblReports Where StaffID = [Forms]![fmReports]![cboStaff] <br />'When filled in it looks more like the query below<br />Select * from tblReports Where StaffID = 1<br /><br />I'm wondering if there is a simple way to run that same report for ALL Staff IDs.  Right now we can assume we have 7 staff member with datatype Long and IDs of 1 to 7.<br /><br />Select * from tblReports Where StaffID is Between 0 and 90 (grouping on Staff ID, sorting on a date field)<br /><br />Jim<br />]]></description>
		<pubDate>Wed, 16 May 2012 17:47:34 -0400</pubDate>
		<guid>http://www.utteraccess.com/forum/Run-Report-Users-t1987173.html</guid>
	</item>
	<item>
		<title>Can Instr(string) Be Used As The Update Criteria For A Field?</title>
		<link>http://www.utteraccess.com/forum/Instrstring-Update-t1987172.html</link>
		<description><![CDATA[Hi,<br /><br />I was hoping someone could help me "see the light" with the issue I'm having. I've provided the vba code below. The vba code is looping through a multilist box. There are two text boxes hidden on the form. TextBox1 is a string of item numbers, TextBox2 is a string of location codes that correspond to the item numbers in TextBox1. <br /><br />Example:<br /><br />TextBox1:   095716,  167017,  180886,  180887<br />TextBox2:  A404A,A404A,A103A,A102A<br /><br />Item # 095716 needs to be updated to location A404A .... Item # 180887 needs to be updated to location A102A.<br /><br />I've been updating the location code by having a user select a location from a combo box and then all items for the location were being displayed in the multilist box. Then based on which items the user selected I used <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->InStr&#40;&#91;Forms&#93;!&#91;ReceivingPropertyTransferForm&#93;!&#91;TextBox1&#93;,&#91;ItemNumber&#93;&#41;<!--c2--></div><!--ec2--> as an expression in my update query to update the location code field selected in the combo box for each item number that appears in TextBox1.<br /><br />I had to change that design and now display the location code as column 2 in the multiselect box. I want the user to select the row in the multiselect box and then have it update for each item number (column 0) the location code based on column 2 in the multiselect box. I have the two strings (TextBox1, TextBox2), but I don't know how to use the TextBox2 string as update criteria and match it to the item number in TextBox1.<br /><br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->If IsNull&#40;Me.TB_Email.Value&#41; Then<br />MsgBox &#34;Unable to complete Property Transfer&#40;s&#41; approval.&#34; & vbNewLine & &#34;You must enter your work e-mail address in order to view pending transfer&#40;s&#41;.&#34;<br />Exit Sub<br /> <br />Else<br />&nbsp;&nbsp;<br />Dim frm As Form, ctl As Control<br />Dim varItem As Variant<br />Dim strSQL As String<br />Dim strSQL2 As String<br />Dim lngLen As Long<br />Dim lngLen2 As Long<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;Set frm = Forms!ReceivingPropertyTransferForm!<br />&nbsp;&nbsp;&nbsp;&nbsp;Set ctl = frm!LB_MutliSelectItem<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;For Each varItem In LB_MutliSelectItem.ItemsSelected<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strSQL = strSQL & Me!LB_MutliSelectItem.ItemData&#40;varItem&#41; & &#34;,&#34;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strSQL2 = strSQL2 & Me!LB_MutliSelectItem.Column&#40;2, varItem&#41; & &#34;,&#34;<br />&nbsp;&nbsp;&nbsp;&nbsp;Next varItem<br />&nbsp;&nbsp;&nbsp;&nbsp;lngLen = Len&#40;strSQL&#41; - 1<br />&nbsp;&nbsp;&nbsp;&nbsp;lngLen2 = Len&#40;strSQL2&#41; - 1<br /> TextBox1 = Left$&#40;strSQL, lngLen&#41;<br /> TextBox2 = Left$&#40;strSQL2, lngLen2&#41;<!--c2--></div><!--ec2-->]]></description>
		<pubDate>Wed, 16 May 2012 17:09:44 -0400</pubDate>
		<guid>http://www.utteraccess.com/forum/Instrstring-Update-t1987172.html</guid>
	</item>
	<item>
		<title>File Identifier Is Stuck</title>
		<link>http://www.utteraccess.com/forum/File-Identifier-Stuck-t1987170.html</link>
		<description><![CDATA[Below is my code. Basically I want to read a series of CSV files and import them into the current workbook, adding them to the end of the existing data. Today is 5/16, so I want to find the file for 5/15 and copy its data. The MsgBox statement gives me the correct file name and stops the processing and I can see that the correct file is open. I clikc OK and processing continues. However, the program manages to copy the data from the same file with a date stamp of 5/10. It doesn't matter what the current date is. I open the correct file for the date I want to copy, but the program always copies the data for the file for the 10th.<br /><br />I even renamed the file for the 10th to a name that doesn't match the pattern, so I know I can't be opening it accidentally.<br /><br />This code used to work until the 10th. Then it lached onto that file and won't let go.<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->Option Explicit<br /><br />Sub ImportNTFDaily&#40;&#41;<br />Dim RptPath As String, RptName As String<br />Dim nReports As Long, kReports As Long<br />Dim StartDate As Date, EndDate As Date<br />Dim xlBook As Excel.Workbook, xlReport As Excel.Workbook<br />Dim rCopy As String<br /><br />Set xlBook = ThisWorkbook<br />RptPath = Trim&#40;Range&#40;&#34;ReportPath&#34;&#41;&#41;<br />StartDate = Range&#40;&#34;NTFStart&#34;&#41;<br />EndDate = Range&#40;&#34;NTFEnd&#34;&#41;<br /><br />' Clear out old data<br />Sheets&#40;&#34;Control Panel&#34;&#41;.Range&#40;&#34;I3&#58;I13&#34;&#41;.ClearContents<br />If Range&#40;&#34;NTFNextRow&#34;&#41; &#62; 2 Then<br />&nbsp;&nbsp;&nbsp;&nbsp;Sheets&#40;&#34;NTF Daily&#34;&#41;.Range&#40;&#34;A2&#58;A&#34; & LastRow&#40;&#34;A&#34;, &#34;NTF Daily&#34;&#41;&#41;.EntireRow.Delete<br />End If<br /><br />Application.DisplayAlerts = False<br />For kReports = 1 To EndDate - StartDate<br />&nbsp;&nbsp;&nbsp;&nbsp;RptName = &#34;CLNR NTF by POS RET CODE &#34; & Format&#40;StartDate + kReports, &#34;yyyy-mm-dd&#34;&#41; & &#34;.xlsx&#34;<br />&nbsp;&nbsp;&nbsp;&nbsp;If Dir&#40;RptPath & RptName&#41; = &#34;&#34; Then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xlBook.Sheets&#40;&#34;Control Panel&#34;&#41;.Cells&#40;kReports + 2, 9&#41; = RptName & &#34; - not found&#34;<br />&nbsp;&nbsp;&nbsp;&nbsp;Else&nbsp;&nbsp;&nbsp;&nbsp; ' If the workbook exists, open it<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set xlReport = Workbooks.Open&#40;RptPath & RptName&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rCopy = xlReport.Sheets&#40;1&#41;.Range&#40;&#34;K1&#34;&#41;.End&#40;xlDown&#41;.Address<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MsgBox &#34;Report name is&#58;&#34; & xlReport.Name<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xlReport.Sheets&#40;1&#41;.Range&#40;&#34;A2&#58;&#34; & rCopy&#41;.Copy _<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xlBook.Sheets&#40;&#34;NTF Daily&#34;&#41;.Range&#40;&#34;A&#34; & xlBook.Sheets&#40;&#34;NTF Daily&#34;&#41;.Range&#40;&#34;$N$1&#34;&#41;&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xlReport.Close savechanges&#58;=False<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;xlBook.Sheets&#40;&#34;Control Panel&#34;&#41;.Cells&#40;kReports + 2, 9&#41; = RptName & &#34; - processed&#34;<br />&nbsp;&nbsp;&nbsp;&nbsp;End If<br />Next<br />Application.DisplayAlerts = True<br /><br />End Sub<!--c2--></div><!--ec2-->]]></description>
		<pubDate>Wed, 16 May 2012 16:07:48 -0400</pubDate>
		<guid>http://www.utteraccess.com/forum/File-Identifier-Stuck-t1987170.html</guid>
	</item>
	<item>
		<title>Query Speed</title>
		<link>http://www.utteraccess.com/forum/Query-Speed-t1987169.html</link>
		<description><![CDATA[<br />First, sorry about the cross post but realized I put this question in the wrong forum.<br /><br />I have this sql statement, that with the help of others, that produces the results that I am looking for. It displays all required fields and and then calculates the difference in miles from one row to next (displaying the number as either a + or - number. Without a criteria it will produce a result in about 4 seconds (1400 records). If I add the criteria of &gt;0.0001 on the calculated column the query takes about .04 seconds per record, 1 minute 8 seconds for 1400 records or aboutt 5 minutes to run against 7000 records (almost a lifetime).<br /><br />I have tried making this an update query (without the criteria) with the hope of running a second query,with criteria, against that table, but even without the criteria the update query still took a minute 4. Any thoughts on how this can be made to run faster?<br /><br />Ussing Access 2010<br /><br />SELECT T1.Date, T1.Route, T1.BookingID, T1.StreetNumber, T1.Street, T1.Arrive, T1.Perform, T1.Miles, T1.Miles-(SELECT Miles FROM TblPrimaryData As T2 <br /><br />WHERE T2.Route = T1.Route AND T2.IDNumber = (SELECT MIN(IDNumber) FROM TblPrimaryData AS T3 <br />WHERE T3.Route = T1.Route AND T3.IDNumber &gt; T1.IDNumber)) AS Difference FROM tblPrimaryData AS T1<br /><br />GROUP BY T1.Date, T1.Route, T1.BookingID, T1.StreetNumber, T1.Street, T1.Arrive, T1.Perform, T1.Miles, T1.IdNumber, T1.Status, T1.Activity<br /><br />HAVING (((T1.Miles-(SELECT Miles FROM TblPrimaryData As T2 WHERE T2.Route = T1.Route AND T2.IDNumber = (SELECT MIN(IDNumber) FROM TblPrimaryData AS T3 WHERE T3.Route = T1.Route AND T3.IDNumber &gt; T1.IDNumber)))&gt;0.001))<br /><br />ORDER BY T1.IdNumber;]]></description>
		<pubDate>Wed, 16 May 2012 15:48:25 -0400</pubDate>
		<guid>http://www.utteraccess.com/forum/Query-Speed-t1987169.html</guid>
	</item>
	<item>
		<title>Update Table Using Multiple Recordsets?  (maybe?)</title>
		<link>http://www.utteraccess.com/forum/Update-Table-Multiple-Re-t1987167.html</link>
		<description><![CDATA[Here's what I'm trying to do and I apologize if I'm headed the wrong direction.  I'm trying to cycle through the records in table t_Directory (about 6 to 10 records) and for each .xlsx file, open the Excel file and update a second table called t_SheetInfo with the FileID of the Excel Worksheet and worksheet count and the worksheet name.  I thought I just about had it, but I'm getting an error on <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->rs2.Fields&#40;&#34;&#91;SheetName&#93;&#34;&#41; = WorkSheetName&#40;WorkSheetCount&#41;<!--c2--></div><!--ec2--> line.  Would anyone mind steering me in the write direction?  Thank you in advance for any help!!<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->Dim db As DAO.Database<br />Dim xlApp As Excel.Application<br />Dim xlWB As Excel.Workbook<br />Dim xlWS As Excel.Worksheet<br /><br />Private Sub CycleThroughWorkSheets&#40;&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;Dim rs As DAO.Recordset<br />&nbsp;&nbsp;&nbsp;&nbsp;Dim rs2 As DAO.Recordset<br />&nbsp;&nbsp;&nbsp;&nbsp;Dim sSQL1 As String<br />&nbsp;&nbsp;&nbsp;&nbsp;Dim sSQL2 As String<br />&nbsp;&nbsp;&nbsp;&nbsp;Dim sSQL3 As String<br />&nbsp;&nbsp;&nbsp;&nbsp;Dim rsFilePath As String<br />&nbsp;&nbsp;&nbsp;&nbsp;Dim rsWSName As String<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;sSQL1 = &#34;SELECT t_Directory.FileID, t_Directory.FilePath FROM t_Directory &#34; & _<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#34;WHERE &#40;&#40;&#40;t_Directory.FileExtension&#41;=&#34;&#34;'xlsx'&#34;&#34;&#41;&#41;&#34;<br />&nbsp;&nbsp;&nbsp;&nbsp;Set rs = db.OpenRecordset&#40;&#34;sSQL1&#34;, dbOpenDynaset&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;With rs<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rs.MoveFirst<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Do While Not rs.EOF<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rsFilePath = rs.Fields&#40;&#34;&#91;FilePath&#93;&#34;&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;OpenWorkBook &#40;rsFilePath&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;Set rs2 = db.OpenRecordset&#40;&#34;t_SheetInfo&#34;, dbOpenDynaset&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;With rs2<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rs2.MoveFirst<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Do While Not rs2.EOF<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rs2.AddNew<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rs2.Fields&#40;&#34;FileID&#34;&#41; = rs.Fields&#40;1&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rs2.Fields&#40;&#34;&#91;SheetIndex&#93;&#34;&#41; = WorkSheetCount&#40;rsFilePath&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rs2.Fields&#40;&#34;&#91;SheetName&#93;&#34;&#41; = WorkSheetName&#40;WorkSheetCount&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rs2.Update<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Next<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loop<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End With<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End With<br />&nbsp;&nbsp;&nbsp;&nbsp;Set rs = Nothing<br />&nbsp;&nbsp;&nbsp;&nbsp;Set rs2 = Nothing<br />End Sub<br /><br />Public Function WorkSheetCount&#40;rsFilePath As String&#41; As Integer<br />&nbsp;&nbsp;&nbsp;&nbsp;Set xlWB = xlApp.Workbooks.Open&#40;rsFilePath&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WorkSheetCount = xlWB.Sheets.Count&#40;rsFilePath&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Debug.Print &#34;WorkSheetCount &#58; &#34; & WorkSheetCount<br />End Function<br /><br />Public Function WorkSheetName&#40;WorkSheetCount As Integer&#41; As String<br />&nbsp;&nbsp;&nbsp;&nbsp;Set xlWB = xlApp.Workbooks.Open&#40;rsFilePath&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WorkSheetName = Worksheets&#40;WorkSheetCount&#41;.Name<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Debug.Print &#34;WorkSheetName &#58; &#34; & WorkSheetName<br />End Function<!--c2--></div><!--ec2-->]]></description>
		<pubDate>Wed, 16 May 2012 15:34:54 -0400</pubDate>
		<guid>http://www.utteraccess.com/forum/Update-Table-Multiple-Re-t1987167.html</guid>
	</item>
	<item>
		<title>Email Issue In Access 2007</title>
		<link>http://www.utteraccess.com/forum/Email-Issue-Access-2007-t1987166.html</link>
		<description><![CDATA[I am attempting to send an email using the following lines of code -- both fail:<br /><br />Private Sub Export_Click()<br />On Error GoTo Err_Export_Click<br /><br />'    DoCmd.SendObject acReport, "rptProject", acFormatPDF, Email_TO, , , "Sample Email Subject", , False<br />    DoCmd.SendObject acReport, "rptProject", acFormatPDF, "RealEmailAddress@yahoo.com", , , "Sample Email Subject", , False<br />   <br />Exit_Export_Click:<br />    Exit Sub<br /><br />Err_Export_Click:<br />    MsgBox Err.Description<br />    Resume Exit_Export_Click<br />    <br />End Sub<br /><br />My email uses Outlook Web Access and I am running over a wireless connection. When the code runs I get prompted for my email password. Sometimes I get prompted over and over then the email appears to have been sent but wasn't. Sometimes I am not prompted. Problem is that email is NEVER actually sent. Anyone have any suggestions?<br /><br />The prompts are attached.<br /><br /><br /><br />]]></description>
		<pubDate>Wed, 16 May 2012 15:26:53 -0400</pubDate>
		<guid>http://www.utteraccess.com/forum/Email-Issue-Access-2007-t1987166.html</guid>
	</item>
	<item>
		<title>Text Box Formatting Dependent On Other Field Value</title>
		<link>http://www.utteraccess.com/forum/Text-Box-Formatting-Depen-t1987164.html</link>
		<description><![CDATA[Hey everyone,<br /><br />I have a report that shows various Accounts (Field name is "Account Name") as well as their corresponding values (Field name is "Q1"). Within the Q1 field, there are numbers (Standard format needed) and as percentage (% format needed). Is there any way for the format of Q1 to be dependent on the value in "Account Name" ?<br /><br />For example, if Account Name = "Margin", then format Q1 as %, else format it as Standard. All of the values are calculated outside of Access, therefore they are all contained within one field (Q1).<br /><br />I need the report to look like this:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->Account Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Q1<br />Sales&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1,000<br />Costs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;500<br />Profit&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 500<br />Margin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 50%<!--c2--></div><!--ec2--><br />Thank you for any and all help!]]></description>
		<pubDate>Wed, 16 May 2012 14:56:26 -0400</pubDate>
		<guid>http://www.utteraccess.com/forum/Text-Box-Formatting-Depen-t1987164.html</guid>
	</item>
	<item>
		<title>Cannot Filter A Form Using Two Criteria</title>
		<link>http://www.utteraccess.com/forum/Filter-Form-Criteria-t1987162.html</link>
		<description><![CDATA[Access 2010. Windows 7<br /><br />If I filter a form using just one criteria ( StLinkCriteria = "[Picture_Name]=" & "'" & Me![Picture_Name] & "'"), <br />it worked. If however, I filter a form using two criteria, I get an error message<br />"Run-time error 3075. Syntax error missing operator in query expression.<br /><br />////////////////////////////////////////////////////////////////////////<br /><br />Private Sub Picture_Name_And_Date_AfterUpdate()<br />  Dim StLinkCriteria As String<br />  Dim StLinkCriteria_2 As String<br />  Dim Date_And_Time_Str As String<br />  <br />  Date_And_Time_Str = Picture_Name_And_Date.Column(1, Picture_Name_And_Date.ListIndex + 1)<br />  <br />  StLinkCriteria = "[Picture_Name]=" & "'" & Me![Picture_Name] & "'"<br />  StLinkCriteria_2 = "[Picture_Name_And_Date]=" & "'" & Date_And_Time_Str & "'"<br /><br />  StLinkCriteria = StLinkCriteria & StLinkCriteria_2<br />  DoCmd.OpenForm "FRM_TAGNAME_USED", , , StLinkCriteria<br />End Sub]]></description>
		<pubDate>Wed, 16 May 2012 14:54:09 -0400</pubDate>
		<guid>http://www.utteraccess.com/forum/Filter-Form-Criteria-t1987162.html</guid>
	</item>
	<item>
		<title>Address Subform</title>
		<link>http://www.utteraccess.com/forum/Address-Subform-t1987161.html</link>
		<description><![CDATA[Hi<br /><br />I need help with my database.<br /><br />Im uploading my database and if you open frmCompanyDetails you will see what Im trying to do, I had some help through this forum and also privately from a member of UtterAccess. The problem is I am teaching myself access as I go along and it is difficult - but Im not going to let that stop me.<br /><br />The main form of my database seems perfect at this stage and so is the subform for contacts - ideas for these areas of my database will be welcome.<br /><br />But now I come to the ADDRESSES part of my form (its also a subform) and thats where I get stuck.<br />For any of my companies I will have at least 3 addresses. A physical address, a postal address and a delivery address.<br />Natrually the physical address will be a street address and the postal address and delivery address could be either a street address or a P.O. Box address.<br />A customer may also make a request that a certain address be delivered to - this needs to be kept on record since I may need to deliver to that address <br />There also maybe another physical addressagain.<br />I was thinking that a field (to be later placed on a form) needs to be created for every part of the address (i.e. The 4 lines of a usual address and only those relevant displayed. Difficult to describe since I want to separate the lines of each address and dont particularly want to display "empty" columns. The unheard of may happen - what if a certain address is 5 or 6 lines long, what do I do?<br />Examples of address (Physical)<br />123 Saxon Road, Heights, 7300 - 3 lines<br />1542 Plain Street, Bromley Manor, Johannesburg, 2456 - 4 lines<br />Office 2A, 15 Walker Avenue, Meadowfields. Apple Valley, 1246 - 5 lines<br /><br />Example of postal address<br />P.O. Box 175, Cape Town, 8000<br /><br />There also maybe another physical address - perhaps the company has another branch, also there maybe another postal address because the company may have another mailing address.<br />Now a delivery address and a postal address can be the same as the physical address, things could be delivered to a P.O. Box and a special delivery address could be specified which could be a physical address or a postal address.<br /><br />I have been trying to rack my brain on how to do this in access but I cannot.]]></description>
		<pubDate>Wed, 16 May 2012 14:48:23 -0400</pubDate>
		<guid>http://www.utteraccess.com/forum/Address-Subform-t1987161.html</guid>
	</item>
	<item>
		<title>Modifying A Report Filter</title>
		<link>http://www.utteraccess.com/forum/Modifying-Report-Filter-t1987160.html</link>
		<description><![CDATA[Think I posted this in the wrong forum initially, so forgive me for double-posting.  I inherited an Access report that has the following filter (found this on the Property Sheet):<br /><br />[Dept]="1942"<br /><br />I need to modify it to include another dept (1941).  I have tried several ways but none work:<br /><br />[Dept]="1942","1941"<br />[Dept] IN "1942","1941"<br />[Dept] In "1942","1941"<br />[Dept] In List "1942","1941"<br />[Dept] In List ("1942","1941")<br /><br />I have very limited experience with Access, and I'd greatly appreciate it if anyone could tell me the correct syntax to pull both depts.  If it matters, the Record Source is a query, but the query itself does not have any selection criteria regarding depts.<br /><br />Many thanks,<br />Steve]]></description>
		<pubDate>Wed, 16 May 2012 14:34:45 -0400</pubDate>
		<guid>http://www.utteraccess.com/forum/Modifying-Report-Filter-t1987160.html</guid>
	</item>
	<item>
		<title>Sql Query In Vba Against Rangename</title>
		<link>http://www.utteraccess.com/forum/Sql-Query-Vba-Rangename-t1987158.html</link>
		<description><![CDATA[i'm ok to write a sql query in vba against an outside source (see below), but i would like select from a range (name) within my current workbook...?<br /><br />Example:<br />Dim cn As ADODB.Connection, rs As ADODB.Recordset, f As Integer, r As Long<br />strSourceFile = "&#092;&#92;&#48;3-server&#092;data&#092;database&#092;Holding_Schedule_RG.xls"<br />strsql = "SELECT * FROM [Jobs$];"<br />    'connection...<br />    Set cn = New ADODB.Connection<br />    On Error Resume Next<br />    'open connection...<br />    cn.Open "DRIVER={Microsoft Excel Driver (*.xls)};DriverId=790;ReadOnly=True;" & _<br />        "DBQ=" & strSourceFile & ";"<br />    'recordset<br />    Set rs = New ADODB.Recordset<br />    'open rs<br /> rs.Open strsql, cn, adOpenForwardOnly, adLockReadOnly, adCmdText<br /><br />???<br /><br />thank you.]]></description>
		<pubDate>Wed, 16 May 2012 14:19:02 -0400</pubDate>
		<guid>http://www.utteraccess.com/forum/Sql-Query-Vba-Rangename-t1987158.html</guid>
	</item>
	<item>
		<title>Connection Not Being Closed Gridview</title>
		<link>http://www.utteraccess.com/forum/Connection-Closed-Gridv-t1987157.html</link>
		<description><![CDATA[I have a web site created through VS 2005 (ASP.NET and VB.NET)<br /><br />I add a gridview control and an access data source control and allow it to display some data.<br /><br />All I am doing is giving the access data source a DB, and then passing a query from that to the gridview control. When I do this it creates an LDB file. This file stays open until I completely kill the connection or completely close VS.<br /><br />I have tried to manually close the connection, I have tried to dispose it. I have tried putting everything within Using / End Using and everytime the connection is not closed.<br /><br />Any thoughts as to why the connection does not close, or some way to close the connection?<br /><br />I have tried google and have come up blank so far.]]></description>
		<pubDate>Wed, 16 May 2012 14:03:46 -0400</pubDate>
		<guid>http://www.utteraccess.com/forum/Connection-Closed-Gridv-t1987157.html</guid>
	</item>
	<item>
		<title>Multiple Selection</title>
		<link>http://www.utteraccess.com/forum/Multiple-Selection-t1987155.html</link>
		<description><![CDATA[do i have options for the user to select multiple choices other than a listbox...?<br /><br />???<br /><br />thank you.]]></description>
		<pubDate>Wed, 16 May 2012 13:44:47 -0400</pubDate>
		<guid>http://www.utteraccess.com/forum/Multiple-Selection-t1987155.html</guid>
	</item>
	<item>
		<title>Insert Records Avoiding Duplicates (not Primary Key)</title>
		<link>http://www.utteraccess.com/forum/Insert-Records-Avoiding-D-t1987154.html</link>
		<description><![CDATA[Hello, I am kind of stuck with what I thought it was a simple query:<br /><br />I have 2 tables (fields of each table):<br /><br />LEADCAMPANIA (ID_LEADCAMPANIA, ID_LEAD, ID_CAMPANIA)<br />FILTRO_LEAD_AUX (ID_LEAD)<br /><br />I need to insert all records from FILTRO_LEAD_AUX into LEADCAMPANIA. The ID_CAMPANIA value is stored in a variable called "intIdCampania". So the INSERT query I use is this:<br /><br />INSERT INTO LEADCAMPANIA (ID_LEAD, ID_CAMPANIA) SELECT FILTRO_LEAD_AUX.ID_LEAD, " & intIdCampania & " AS Expr1 FROM FILTRO_LEAD_AUX<br /><br />And it works fine<br /><br />The problems start when I do not want duplicates to be inserted into LEADCAMPANIA. I need duplicate ID_LEAD records being excluded from the query, but only those where ID_CAMPANIA = intIdCampania. E.g:<br /><br />FILTRO_LEAD_AUX<br />1<br />2<br />3<br /><br />LEADCAMPANIA<br />A|1|100<br />B|2|200<br /><br /><br />If the value of intIdCampania is 200, then records 1 and 3 should be inserted into LEADCAMPANIA but record #2 should not because it is already in LEADCAMPANIA and its ID_CAMPANIA matches the current intIdCampania value<br /><br />How can I do this through a SQL statement? should I add a Where condition at the end of my existing query?<br /><br />Hope I have explained myself properly<br /><br />Thanks!]]></description>
		<pubDate>Wed, 16 May 2012 13:00:15 -0400</pubDate>
		<guid>http://www.utteraccess.com/forum/Insert-Records-Avoiding-D-t1987154.html</guid>
	</item>
	<item>
		<title>Argh! Ms Access Stopped Working When Trying To Link To A Lan Mysql Server!</title>
		<link>http://www.utteraccess.com/forum/Argh-Ms-Access-Stopp-t1987153.html</link>
		<description>so why is this happening? my thing is weird. for some reason, when i link the tables on the mysql server ms access stops working! any ideas?</description>
		<pubDate>Wed, 16 May 2012 12:45:05 -0400</pubDate>
		<guid>http://www.utteraccess.com/forum/Argh-Ms-Access-Stopp-t1987153.html</guid>
	</item>
	<item>
		<title>Merge 2 Tables</title>
		<link>http://www.utteraccess.com/forum/Merge-2-Tables-t1987152.html</link>
		<description><![CDATA[I am planning my Access DB. <br />We want to create a product table with unique id, from the ERP - But as the ERP deleted history once sales are invoiced, we want to maintain the history in Access. Hence we would regularly download the product usage data from the ERP into a new table <br /><br />Or can we import to one table, would that table overwrite and loose the data.<br /><br />So the plan is to download into a new table, but then I want to merge the new and old tables and preserve the historic data. But how do I merge the two sets of data tables -all fields will be the same in each. I am using Access 2010.<br /><br />thanks<br />Colin]]></description>
		<pubDate>Wed, 16 May 2012 12:35:24 -0400</pubDate>
		<guid>http://www.utteraccess.com/forum/Merge-2-Tables-t1987152.html</guid>
	</item>
	<item>
		<title>Instr Function</title>
		<link>http://www.utteraccess.com/forum/Instr-Function-t1987150.html</link>
		<description><![CDATA[when the form is closed the Notes field has the Date appended to the front of it with #'s leading and ending.  I want to be sure that it does not<br />get entered more than once so if the # is already in the Notes field it should just add to the already existing notes entry without adding in the date and the leading and ending #'s<br /><br />dim strfinddate as integer<br /><br /><br />strfinddate = InStr("notes", "#")<br />If strfinddate &lt; 1 Then<br />notes = "#" & Date & "#" + " " + notes<br />Else<br />notes = notes + notes<br />End If]]></description>
		<pubDate>Wed, 16 May 2012 12:20:58 -0400</pubDate>
		<guid>http://www.utteraccess.com/forum/Instr-Function-t1987150.html</guid>
	</item>
</channel>
</rss>
