ms-access

Best way to prompt for report parameters in microsoft access

Lets say you are designing a sales report in microsoft access. You have 2 parameters: Startdate and EndDate. I can think of 3 ways to prompt the end user for these parameters when the report is run. Create a form with 2 Text Boxes and a button. The Button runs the report, and the report refers back to the form by name to get the start...

Monitor queries in an access database

Is there a way to monitor queries in an access database, similar to the way SQL Profiler works? I have a very old piece of software that I do not have the source for and it has an ODBC connection to an access database on another computer. Is there a way to monitor what queries are being called? ...

How to display a table order by code (like 01, 02… then null columns)?

How to display a table order by code (like 01, 02… then null columns)? Using Access 2003 Database Table Name Title code Nationality code Raja 05 03 Ramu 03 Vijay 01 02 John 04 01 Roby 06 Abilash 02 05 So on…, I want to display a table order by title code, nationality...

How to be productive in Access VBA + SQL development?

I'm a 80% ruby on rails developer, but still need to do some Access VBA work. Some of them are very shit systems, been build ages ago , used by the big enterprise globally , so that most of the works are just enhance the old system. The techniques are basically MS Access as front-end, linked-table which link to SQL server via ODBC as b...

Microsoft Access SQL Date Comparison

I am using Access 2007. I need to return rows with a date/time field falling within a date range to be specified in query parameters. The following doesn't error out, but doesn't appear to work. SELECT FIELDS FROM FOO WHERE (FOO.CREATED_DTG BETWEEN [START_DTG] And [END_DTG]); Likewise this doesn't work for me SELECT FIELDS FROM FOO...

Modifiy column attribute using ADOX [ vc++ and MS Access]

I have to add new columns in existing table. I can able to successfully add new column, but following exception occur while tying to modify the column attribute to nullable. Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done Here my code, HRESULT hr = S_OK; ADOX::_CatalogPtr...

How to use a Query in another DB as a Form's RecordSource?

I'm trying to split a database into two pieces -- a backend that updates automatically, and a front-end that allows searching and adding/editing comments. The data in the source database is pulled together from multiple tables into a pair of queries, and I want to use these queries as the source of the current database. Access 2007 s...

Importing from Business Contact Manager to Access

Is there a way to import the database that is created for Microsoft Outlook with Business Contact Manager to an Access 2007 database? ...

Access 2007 triggers and procedures equivalents?

Ok, does anyone have some good resources for Access 2007 features regarding triggers or stored procedures? Can it even do them or something similar to them? Every resource I have found on Microsoft’s help is referencing back to Access 2003, as well as many of the help manuals online. Everything is moved around in 2007, so it is a littl...

Some access 2007 programming questions on forms

I am designing a small Access 2007 UI with SQL Server tables. I have a subform on my page, which is a datasheet. For every parent record selected (say table A, and table B has a foreign key of table A) in the form view, I want to write out every related record in the datasheet. There are 5 customers. Each has several orders. You can br...

General Network Error accessing SQL Server 2005 from Access 2000

We are encountering problem in using Access 2000 (.ADP) as our front-end and SQL 2005 as our back-end and we have more then 50 users: [DBNETLIB][ConnectionWrite (send()).]General network error. Check your network documentation. It was working fine for the last years, but now the system keeps kicking out the user. They always receive an...

Can't create blank form in MS Access

I don't know what's wrong with my environment, since I copied the application back to my local laptop, it's never working smooth, as now, I can't create the blank form, the whole app will crush if I just click the create blank form button? Anybody has the similar experience ? thanks My Envrionment: MS access 2007 + ODBC SQL server 200...

How to use LIKE condition in SQL with numeric field?

Hi, I'm using this query to get some specific data: "select * from emp where emp_name LIKE 's%'"; emp_nam is character field, how can I use the same logic condition with numeric field? something like: "select * from emp where emp_id ???? where emp_id is numeric field. Thanks, ...

Sorting while using Access runtime

Here's the situation: I have a database application that the users run in Access 2003 runtime mode. I have a form that runs in Datasheet view. What I want to be able to do is allow the user to change the sort order while viewing this datasheet form. I have included the normal Access sort ascending/sort descending buttons on a custom tool...

How can I make the column widths of a list box in MS-Access2007 automatically size themselves correctly?

Background info: I was handed a "Tool", which was made using MS-Access 2007, and asked to add some things... The tool is basically a collection of options for querying a database. On a form titled CreatedReport there is a listbox that is bound to a table called analyzed which has all of resulting data from the query/queries that ran. The...

SQL Unique Values Numbering Sequence for Pivot

For reporting purcposes, I need to Pivot results of a query that is unique on each record. My current statement is: SELECT * FROM Sales AS x WHERE (select count(*) from Sales where customer_name=x.customer_name and order_date>=x.order_date)<=5 ORDER BY customer_name, order_date, price; A sample of the Query output is: custo...

How can I use quotes inside of an input string in VBA?

I'm trying to input ColumnWidths for a listbox in MS-Access2007 VBA and I'm having a problem getting it to take decimal numbers. Code: ResultList.ColumnWidths = "1;0.65;0.7;0.7;0.8;0.4" Debug.Print ResultList.ColumnWidths What gets put in for the ColumnWidths: 1;1;1;1;1;0 The way I want to get it to look after entered (based on w...

Handling an output error in Access

I'm generating a query and report through VBA. I have an option of asking the user if they want to output the report as a snapshot. I first ask them if they want to make a snap shot. If they say no, nothing happens. If they say yes, they get a prompt asking where they want to save it. Everything works great except if they say yes ...

Convert Memo to Text

Hi, I've got an msaccess database which have been created in Access 2002. I only have access 2003 and 2008 in my computer. so I've converted the database into access 2003 format. The problem I have is that I have a table named 'tblItms_F001' in the database with a column named 'stemtext' which is in memo datatype. I just want to be a...

Convert Memo to Text

Exact Duplicate of : http://stackoverflow.com/questions/1112954/convert-memo-to-text Hello, I've got an msaccess database which have been created in MS Access 97. I only have access 2003 and 2008 in my computer. so I've converted the database into access 2003 format. The problem I have is that I have a table named 'tblItms_F001' in...