ms-access

What is causing my access database to be so slow?

前提是你 提交于 2020-01-01 19:18:21
问题 Just to clarify it's not actually my database and I didn't choose access, I'm just helping a company out by developing some of their already implemented access database. Anyway, on some of their forms the forms open and run extremely slowly for no apparent reason. There is one form which takes a long long time to open on everyone's computer but runs fine when it's there and there's another form that runs fine on most people's computers and is practically unusable on a few. The forms have a

How do you dynamically create controls on a MS Access form?

南楼画角 提交于 2020-01-01 17:09:53
问题 I am writing a survey (data input) form in MS Access. I need to dynamically display all the questions in the questions table in labels on my form. Each of these question labels will also be accompanied by a combo box that will display possible answers. How can I add labels to a form dynamically? 回答1: See the CreateControl Method. For a label, use acLabel from the AcControlType Enumeration as the ControlType parameter for CreateControl. However, this will get more complicated. In addition to

Exporting Charts of Access to Image Format?

浪子不回头ぞ 提交于 2020-01-01 16:33:33
问题 I have created a chart in Access forms and exported it in Image Format. It's easily done, but the problem comes when after it, when I close the Form, It Shows a Pop-up message. "The operation on the Chart object failed. The OLE server may not be registered. To register the OLE server, reinstall it. " Then I have done some change and the Code looks Like: Private Sub Command1_Click() Dim grpApp As Graph.Chart Set grpApp = Me.Graph1.Object grpApp.Export "C:\Graph1.jpg", "JPEG" Me.Graph1.Enabled

Export Access query results to csv

陌路散爱 提交于 2020-01-01 15:03:55
问题 I have an access database which manipulates data from a Magento e-commerce store, reformats the data and (hopefully!) spits out a CSV file which can then be imported into ebay Turbolister for mass upload to eBay. I have got as far as creating a query which correctly lays out the data into the format required by Turbolister. My issues are various (including some which appear to be related to Access' handling of large field contents), however the crux of my problem is that I am struggling to

Select column names in a table using PyODBC

喜你入骨 提交于 2020-01-01 14:25:18
问题 I'm writing a Python program that selects some data from a Microsoft Access mdb file using PyODBC. I need to discover the column names of several different tables. In SQL Server, this can be accomplished by using a query like SELECT c.name FROM sys.columns c, sys.tables t WHERE c.object_id = t.object_id AND t.name = tableName But that query doesn't work in Access. With SELECT MSysObjects.Name FROM MSysObjects WHERE (((MSysObjects.Flags)=0) AND ((MSysObjects.Type)=1)) ORDER BY MSysObjects.Name

Select column names in a table using PyODBC

孤人 提交于 2020-01-01 14:25:07
问题 I'm writing a Python program that selects some data from a Microsoft Access mdb file using PyODBC. I need to discover the column names of several different tables. In SQL Server, this can be accomplished by using a query like SELECT c.name FROM sys.columns c, sys.tables t WHERE c.object_id = t.object_id AND t.name = tableName But that query doesn't work in Access. With SELECT MSysObjects.Name FROM MSysObjects WHERE (((MSysObjects.Flags)=0) AND ((MSysObjects.Type)=1)) ORDER BY MSysObjects.Name

MS Access query - select most recent date

旧巷老猫 提交于 2020-01-01 12:04:59
问题 I have a query I'm designing which grabs data from multiple different tables. In MS Access 2010, how would I create one of the query columns so that it returns the most recent date out of a series of dates, for each user in the table: Sample data from table: userid: | appointment: 000001 | 05/10/2009 000001 | 05/10/2010 000001 | 05/11/2010 000002 | 05/12/2009 000002 | 30/12/2010 expected output for field query: userid: | appointment: 000001 | 05/11/2010 000002 | 30/12/2010 回答1: SELECT userid,

MS Access Create Table with Autoincrement and default date

非 Y 不嫁゛ 提交于 2020-01-01 11:39:55
问题 I try to create MS Access Table with autoincrement ID and Default Date field, but next query always says "Syntax error in CREATE TABLE statement.": CREATE TABLE Table1 ( [ID] AUTOINCREMENT, [Email] TEXT(255), [ProductID] NUMBER, [DateCreate] DATETIME, [DateSend] DATETIME ); ALTER TABLE Table1 ALTER [DateSend] DATETIME DEFAULT NOW() NOT NULL; Who can help me to fix that query. Thanks! 回答1: There are many NUMBER types in Ms-Access, so you have to be specific. I guess you want Integer . CREATE

MS Access Create Table with Autoincrement and default date

℡╲_俬逩灬. 提交于 2020-01-01 11:39:24
问题 I try to create MS Access Table with autoincrement ID and Default Date field, but next query always says "Syntax error in CREATE TABLE statement.": CREATE TABLE Table1 ( [ID] AUTOINCREMENT, [Email] TEXT(255), [ProductID] NUMBER, [DateCreate] DATETIME, [DateSend] DATETIME ); ALTER TABLE Table1 ALTER [DateSend] DATETIME DEFAULT NOW() NOT NULL; Who can help me to fix that query. Thanks! 回答1: There are many NUMBER types in Ms-Access, so you have to be specific. I guess you want Integer . CREATE

Quick filter in datasheet is missing

丶灬走出姿态 提交于 2020-01-01 10:14:16
问题 I have a subform in datasheet view mode and it has missing the filter option that generally appear with checkboxes. Missing By qick filter and checkboxes for filter I mean this: Can somebody tell me how can I get that back? 回答1: Today I stumbled upon a possible answer for you. Try this option: Menu File → Options... → Filter lookup options for <your DB name> Database Change the option Don't display lists when more than this number of records is read: from 1000 (the default) to some larger