ms-access-2010

Ensure SQL-92 on Access 2000 mdb to SQL Server under Access 2010

為{幸葍}努か 提交于 2019-11-29 11:55:15
Due to circumstances not fully under my control, I have to develop ACCESS queries which will be stored in an Access 2000 MDB but which may be developed under any one of: Access 2000, 2002, 2003, 2007, 2010. These queries will access (via linked tables) either an MS SQL Server DB or an Access 2000 .MDB file. In the past, we had issues which we tracked down to queries not being ANSI-92 compatible. This we solved by marking the Check Box in the Tables/Queries tab of the Tools|Options dialog (under older versions of Access than 2007). We move these Access application .MDBs between various systems

“Optional feature not implemented (106) (SQLBindParameter)” error with pyodbc

旧时模样 提交于 2019-11-29 11:41:41
I'm being driven nuts trying to figure this one out. I'm using Python for the first time, and trying to write data collected from twitter out to an Access 2010 database. The command I'm using is: cursor.execute('''insert into core_data(screen_name,retweet_count) values (?,?,)''', (sname,int(rcount))) The error message being returned is: Traceback (most recent call last): File "C:/Documents and Settings/Administrator/PycharmProjects/clientgauge/tw_scraper.py", line 44, in <module> cursor.execute('''insert into core_data(screen_name,retweet_count) values (?,?,)''', (sname,int(rcount))) pyodbc

How to migrate a Access database to be available by multiple users from anywhere

旧时模样 提交于 2019-11-29 11:40:52
Lets say I have a single access file (or two files split into a file with data and a frontend file). I want to make this available to users in a variety of locations. This question has been asked before, but some answers are old eg list here SO 2879281 here SO 11979044 here SO 32667061 here There seems to be many ways this can be achieved, and I just wanted to ask for opinions to see whether I've missed any options: the options all have pros and cons. The most significant differences are in terms of : Cost & Time Need to re-write the access database to be in SQL Server Need to re-write the

MS Access 2010: “Cannot open any more databases.”

寵の児 提交于 2019-11-29 10:09:59
While struggling with a single legacy MS Access application I faced this weird error: Cannot open any more databases. The application makes extensive use of UNION sql statements. So this seems to cause access hitting the limit of 2048 open tables. Any other chance than getting rid of these unions? I had this problem when using linked external tables. The limit was reached because about 10 excel files were used by different queries over and over again. So the number of open tables was more or less the product of queries and tables. I imagine using unions multiplies this problem as well. The

Display multiple attachments in microsoft access 2010 forms and reports

半世苍凉 提交于 2019-11-29 07:58:54
I was initially very pleased to discover the attachment field in Access 2010. It's a feature that aesthetically irks my inner database purist but my inner lazy sod is in charge here and it does look, on the face of it, like it could make one of my current projects much easier/simpler. Happily it displays pictures/icons automatically on the forms and reports but (why is there always a but eh!) it only displays the first one and I need it to display all of them. You can of course scroll through the attachments one at a time but I'm pretty sure my client won't wear that, despite his request that

How to insert values into the database table using VBA in MS access

喜夏-厌秋 提交于 2019-11-29 07:37:19
I've started to use access recently. I am trying to insert a few rows into the database; however, I am stuck as it is throwing an error: Too few parameters. I have a table test with only one column in it named start_date I want to insert all the dates between two dates for example if I consider 1/7/2014 to 3/7/2014 I need dates as 1/7/2014,2/7/2014,3/7/2014 in my table, but I have problem inserting the code I used is as follows Private Sub createRec_Click() Dim StrSQL As String Dim InDate As Date Dim DatDiff As Integer Dim db As database InDate=Me.FromDateTxt 'here I have used a code to find

Lookup field appears as numerical values instead of text on Access report

末鹿安然 提交于 2019-11-29 07:29:10
I am trying to create a report putting a field called contact which has the name of a person. This name is linked directly to another table where I keep all the contacts. For some strange reason, when I include this name (which in query view displays as the name of the contact), instead of the name appearing, the unique ID number is shown on my report. As mentioned in the article cited in the above comment, you can use a Combo Box control on your report to do the lookup for you. To see how this can be done, create a new report based on the table containing the lookup field, then drag and drop

Text-search in properties Access objects

老子叫甜甜 提交于 2019-11-29 02:34:34
Is there a way in Access to search for a certain text in object properties and so on? Just not only in the VBA source code. I'm asking this because if I change for example the name of a field in a table I've to check a lot of object properties (Record Source, Control Source, Order By, ...). This can be done by trail-and-error or by checking all properties of each control of the forms, but that takes a lot of time. One option is the Find and Replace tool (nice tool!), but it's a bit of overkill for me. I don't need a text replace (only 'find') and it's 37 dollar for a tool I'll only use a few

Access 2010 VBA query a table and iterate through results

戏子无情 提交于 2019-11-29 01:08:32
问题 I have a query that I want to execute against a table. With the results I want to do something. In my head the pseudo code is: var q = "select * from table where some condition"; var results = db.getResults(q); foreach (row r in results ) do something with result How would I so something similar with vba? 回答1: DAO is native to Access and by far the best for general use. ADO has its place, but it is unlikely that this is it. Dim rs As DAO.Recordset Dim db As Database Dim strSQL as String Set

MS Access: Ignoring query criteria if blank

核能气质少年 提交于 2019-11-28 14:30:12
I have a form in Access where I run a query based on several text boxes. I apply criteria on several of the query fields that is pulled from the text boxes but would like the query to ignore the criteria when the text box is blank. For example, if the Machine_TextBox is blank, do not apply criteria to the Events.Machine field. SQL code is: SELECT Events.Machine, Events.[Event Date], Events.[Event Description], Events.[Action Taken], Events.[Machine Clinical], Events.[Modalities Not Clinical], Events.[Manufacturer Ticket #], Events.[TLC Ticket #], Events.FSR, Events.ID, Events.[Event Recorded