473,414 Members | 1,605 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Access 2003 database layout questions

Procman
Hi,
I work for a city Senior Citizens Program and I’m creating a new database to replace and old database and several separate and outdated processes (pen and paper) work processes. Many of the users are not very computer savvy as they are seniors who volunteer.

My idea is to have the tables and the forms, etc in separate files on a network share and use Data Access Pages with disconnected recordsets for the forms. Due to budget restrictions, there are only 3 copies of Access, but 7 users.

There are separate tables for tracking: Basic info (name, address, etc), membership, activities participation, and transportation. All of the tables will be one-to-many relationships based on the ClientID (primary key in the Info table). Most of the reporting will be exported to Excel.

Question: Is it possible to set it up this way? It’s basically a Star configuration and I haven’t found any examples like this in my research.

All of the forms (single view) will use a combobox on the client last name. When a form opens, the field is blank. When the user starts typing the last name it auto completes and populates some of the other fields, then moves to the next field to enter data.

How do I accomplish the autocomplete and have the combobox drop down when there is more than one match on the last name so the user can use the arrow keys and spacebar to select the client? I had figured out part of the SQL statement, but it was in a file that was overwritten.

I’m actually a driver and scheduler, so my time for creating this is very limited. If I can get assistance with these, I can take care of the rest. Any help is greatly appreciated.

Jim
Jul 11 '10 #1
3 2330
Jim Doherty
897 Expert 512MB
@Procman
Please be aware that Data Access pages are not MS supported beyond version 2003 and are deprecated in favour of ASP for website interfacing.

The runtime executable of Access 2007 however is a 'free' download and provided you are happy and able to develop in the latest retail version then the runtime version will give you the flexibility of distributing a royalty free application as opposed to buying additional licence to support 7 desktops.

The SQL Server Express edition also is free and will give you a robust backend platform to support your 'star' configuration which incidentally is the usual arrangement when working on a network using a 'split' mdb Access configuration.

I am not aware of your skill level but given you are speaking about disconnected recordsets, I assume it to be good. I am not aware of the specifics by which your implementation of these becomes necessary given you could easily backend everything into the centralised database platform 'live'? so to speak.

As to the 'autolookup' you mention this is a general term used by Access for something that SQL language does in any event. It is the standard mechanism by which information is brought into a standard query definition from one or more tables party to the query joins and is documented in the Access help files
Jul 11 '10 #2
Hi Jim, thanks for your help.

The reasons I’ve chosen to do it this way are:
- the city I work for is technologically WAY behind. Basically, there is no separate IT dept. The people doing those jobs have learned how to do what they need to do, but are not trained “Administrators”.
- I’m doing this on a $0 budget just so we can run our center. Personnel cutbacks have us below our minmum and we are forced to rely on senior volunteers to do a lot of the work.
- I’m the only one at my center who has any idea that this is even possible, let alone HOW to do it.
- I am a Driver and they will not give me any administrator rights to do anything on the workstations. We are having to press them to even give us a shared network folder and allow all of the 7 computers to access the city network instead of only accessing the internet. (Sad, I know.)
- We have mostly MSO 2003 and a couple with 2007. Of these, only 3 even have Access. Based on the city’s $3 million deficit, I don’t see any upgrades in the near future.
- My skill level is novice. I’ve done some VBA and my intent is to learn the Visual Studio apps as well as the open source ones. I’m trying to learn the “standard” ways to do things given what I have to work with.

One question I have about ‘standards’ is what is the best way to store the text fields for names, addresses, etc? These will be used for printed transportation schedules in standard or title case and potentially for mail merges. I’ve also read a lot of discussion regarding table and field names. Is there a basic standard for most databases / programming languages?

The reason for disconnected recordsets is that it is possible that several users will be working with same groups of records at the same time. So the records will only be locked during the update.

For the user level I am dealing with, there will be a text box in the header of each form with instructions that will change as they move to each control - Simple step-by-step instructions.
As for the combobox control (cboLASTNAME or whatever is the proper case), it will be the primary control on most of the forms and will be the basis for populating other controls on the form.

I’ve gotten to the point where it is connected to the recordset as the form loads and has the first record visible. As the user starts typing in the control, the form fields are cleared and as each key is pressed, the value is stored in a public variable (strVar1).

The problem I’m having at this point is how to have it search the recordset to find all last names starting with the first character entered and open the drop down displaying the possible choices. As each character is entered, the list of names is reduced to only the possible matches. This will give the users the option to use the arrow keys / spacebar to select the name without needing to scroll the entire list.

I’m guessing I’m missing something simple at this point, but after hours of trying to figure it out I’m confused. Is there a simpler way to accomplish this than what I've put together through pasting examples and modifying them to my controls?

Below is part of the code for the form events:

Expand|Select|Wrap|Line Numbers
  1. Option Compare Database
  2. Option Explicit
  3. Dim rsCLIENTINFO As ADODB.Recordset
  4. Dim cnSPT As ADODB.Connection
  5. Dim strCONNECTION As String
  6. Public strVar1 As String
  7.  
  8. Private Sub cboLastName_KeyUp(KeyCode As Integer, Shift As Integer)
  9.  
  10.  Dim strCharacter As String
  11.  
  12.     ' Convert ANSI value to character string.
  13.     strCharacter = Chr(KeyCode)
  14.     ' Convert character to ANSI value.
  15.     KeyCode = Asc(strCharacter)
  16.     'Debug.Print strCharacter
  17.  
  18.  strVar1 = strVar1 & strCharacter
  19.  Debug.Print strVar1
  20.  Debug.Print "KU = " & Me.cboLastName
  21.  
  22.  'I've tried many different ways to do this.
  23.  'This is where I get the various errors.   
  24.  rsCLIENTINFO.Find "txtLastName Like" & (strVar1)
  25.  
  26. End Sub
  27.  
Jul 12 '10 #3
Jim Doherty
897 Expert 512MB
Hi Procman :)

Well let us hope a whole bunch of people come piling in with useful hints and contributions.

I for one have a great deal of sympathy for the embattled, passionate, entrepreneurial individual trying to get the job done set against a portfolio of professionals offering nothing positive yet resisting/criticising till blue in the face.

It terms of database structure take a look at this
http://bytes.com/topic/access/insigh...ble-structures

Within the access specification constraints of this
http://bytes.com/topic/access/insigh...specifications

and this if your strategy is disconnected recordsets and web related
http://bytes.com/topic/access/insigh...ting-recordset
http://bytes.com/topic/access/insigh...ccess-data-web

Some friendly references to ADO structure
http://bytes.com/topic/access/insigh...et-ado-cursors
http://bytes.com/topic/access/insigh...vanced-content

The list goes on but I dont want give information overload.

In relation to a standard naming of fields/tables or other objects I personally use the Lechinsky/Roddick naming convention. It is generally accepted as a good standard for use in VBA/VB. Beyond that ie: other languages the floor is open so to speak but lets face it once you become entrenched in one naming convention human nature tends to keep you entrenched

In terms of searching/filtering techniques these are many and varied of course and there are many 'good' examples on here of how to do that. I I am hoping other experts and mods will provide links to others in house as the thread steadily grows. Obviously I hope it does become too big so that it becomes boring to get involved. Feel free to repost specific questions to specific problems that you may have and hopefully that keeps the thread enjoyable and readable

As a starter... I will give you an example of an mdb file I created as demo for a user who wanted to mimic a google type search box in Access. This relies on the ON CHANGE event of a textbox control to provide the data value for incremental searching character by character. Take a look maybe it might give you a few ideas. Admittedly it is not done in Access Data Pages but the principle is there.

Personally I do not use Access Data Pages but I rather hope someone can provide meaningful examples to you in a similiar way

http://bytes.com/topic/software-deve...-access-2007-a


Another search and retrieval mechanism via example download is this
http://bytes.com/topic/access/answer...ed-search-form


The above example method allows for multi field searching in combination and was put together merely to assist in technique, hone skills etc etc

Feel free to disect and rip apart thats the whole point of this.

Your design obviously is a matter for you given your circumstances but I do suspect given your passion and if are anything like what happened with me your IT Dept will 'have' to sit up and listen given your empire will arise like the proverbial Pheonix from the ashes :)

Good luck
Jul 12 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Guillermo | last post by:
Gentlemen, I have a VB6 Project. Works fine in my PC, but once uploaded to my website it can't connect to my Access database. Questions: 1. Can VB.net connect with Access 2003 databases hosted in...
2
by: Mike | last post by:
Hi, I was wondering if the database file size limit was still 2GB in Access 2003? Does anyone out there who has been beta testing or a mvp have any info on this? Regards Mike
3
by: Andy Davis | last post by:
Hi Is there any way of carrying out an automatic daily/weekly backup of an Access 2003 database without the user having to manually remember to do it themselves? Thanks in advance. Dawn
4
by: Bugs | last post by:
Hi everyone. I am trying to open a database which works fine using Access 2003, but when trying to open it on another PC that has Access 2002 I get the following error "This database is...
2
by: suzanne | last post by:
I have a database that had been stable until 3 weeks ago. The Access 2003 database occasionally (a couple of times a week) gets corrupted when the last user exits the application. At least, that's...
2
by: Heather | last post by:
I created a link on the web page to a access 2003 Database and it prompts security messages, it acts like it tries to open, but it gets hung up and i guess times out. I changed the macro security...
2
pbala
by: pbala | last post by:
hello, I created the user level security for one MS Access 2003 database.It created one Shortcut file in Desktop. Now I want to share the database with my company workers. How i will share the...
4
by: peter1952 | last post by:
I would like to automate closing an Access 2003 database at the end of running a macro. How can I do this?
2
by: newphpcoder | last post by:
Good day! I created a database using MS Access 2003 and I want it make to MDE file but when I click the Make MDE File I got the pop up message like this: You cannot create a Microsoft Offiece...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.