Extremely Newbish Question

Jul 28, 2006

First off, I've gotta apologise for how totally poor I am with Access. I know very little so please retract your laughter if my methods are completely stupid, haha. Basically, I'm using Access to pretty much automate a medium sized businesses accounts with reports, but on top of that, I'm using queries to search for various entries in the database.

The DB consists of only one table. I was told specifically to do it this way because the owner of the company is useless with Access and believes it's easier this way, even though, to be honest, it'd be easier with a few relational tables. Anywho, in this one table are details regarding Clientele and their Maintenance Contract information. There is one field entitled 'Name' which is where the customers' name is kept, obviously. I was also told specifically to keep Forenames, middle names and Surnames all in this 'Name' field, which quite obviously leads to a few complications.

At the moment I'm using queries to search specific fields. I use a select query and then call on user input to determine the search criteria in a specific field. For example, viewing the select query in design view, there's the field 'Name', then under this field, next to 'Criteria' is "[Input Customer Name]". Upon executing the query, the user then inputs the customer name and results are displayed. Firstly, is this the most sensible and efficient way to search for a customer by their name? Are their easier ways to achieve this?

My second question. Say, for example, I have a record with a value of 'D. Smith' under the 'Name' field. Say after a phone call to this person they've told me their name is 'Mr. Smith', then obviously, if I were to search for his information, I'd input 'Smith' as search criteria upon query execution. However, Mr Smith's details will not be called upon, not unless the exact value 'D. Smith' is inputted. Is there anyway to return data if it part-matches a search criteria? It'd streamline the search process, that's for damn sure.

Sorry for blabbering on, but I'm not down with the ol' Access lingo so I've had to explain stuff in excess to ensure people actually get what I'm trying to say, haha. Cheers for any help in advance, I'd appreciate it. David.

View Replies


ADVERTISEMENT

Extremely Slow Queries

Feb 12, 2007

Im doing this program for a post office and stuff, their DB is Oracle and they want to front end it in Access coz its free or bundled w/ office.

Im using the almost fossilized Access 2000, the laptop Im working on is a2.6 ghz Centrino w/ 1024 MB DDR RAM abd 250 GB HD.

Now, since that I am sure that the machine's specs has nothing to do with it, I want to ask why are my queries so slow?

I have 15 tables each w/ almot 20K records.

So when I query something like this.
SELECT KYOKUSYOCD AS 局所コード, BUNSITUCD AS 分室コード, REREKINO AS 履歴番号, TOKUISAKICD AS 得意先コード, TRIKAMCD AS 取扱科目コード, '得意先局所対応マスタTTOKUKMD01 の局所コード = ' & KYOKUSYOCD & ' と分室コード = ' & BUNSITUCD & ' のペアが、局所マスタTKYOKUMD01 の局所コードと分室コードとして存在していません。' AS エラー内容 FROM TTOKUKMD01 WHERE KYOKUSYOCD & BUNSITUCD NOT IN (SELECT KYOKUSYOCD & BUNSITUCD FROM TKYOKUMD01)

UNION ALL

SELECT KYOKUSYOCD, BUNSITUCD, REREKINO, TOKUISAKICD, TRIKAMCD,'得意先局所対応マスタTTOKUKMD01 の得意先コード = ' & TOKUISAKICD &' が、得意先マスタTTOKUIMD01 の得意先コードとして存在していません。' AS WHATERROR FROM TTOKUKMD01 WHERE TOKUISAKICD NOT IN (SELECT TOKUISAKICD FROM TTOKUIMD01)

UNION ALL

SELECT KYOKUSYOCD, BUNSITUCD, REREKINO, TOKUISAKICD, TRIKAMCD, '得意先局所対応マスタTTOKUKMD01 の得意先コード = ' & TOKUISAKICD & ' が、得意先マスタTTOKUIMD01 の得意先コードとして存在していません。' AS WHATERROR FROM TTOKUKMD01 WHERE TOKUISAKICD NOT IN (SELECT TOKUISITENCD FROM TTORIKMD01)

UNION ALL SELECT KYOKUSYOCD, BUNSITUCD, REREKINO, TOKUISAKICD, TRIKAMCD, '得意先局所対応マスタTTOKUKMD01 の取扱科目コード= ' & TRIKAMCD & ' が、取扱科目マスタTTORIKMD01 の取扱科目コードとして存在していません。' AS WHATERROR FROM TTOKUKMD01 WHERE TRIKAMCD NOT IN (SELECT TRIKAMCD FROM TTORIKMD01);


Its soooooo slow, as in 6 minutes loading slow, windows xp running on pentium 2 slow, very very... ok you guys get it already.

Please help me coz Im losing my mind already. I did one version in SQL Server and it worked just fine. Sad thing is, they lvoe their VBA apps coz it can be like engraved in Excel or something. Anyway please help

View 1 Replies View Related

Extremely Easy Question

Dec 5, 2004

Hi, i'm currently in 1st year of A-levels and need a bit of help with understanding MS Access.

1. I have an 'email address' column, and i need to make it so that when a user clicks on it, they go to Outlook. I'm using 'mailto:' and a hyperlink at the moment, but it would look complicated for a first time user. Anything i culd do to make it easier to, enter emails, and understand them?

Thanks in advance

steve

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved