Tezcatlipoca
Registered User.
- Local time
- Today, 18:37
- Joined
- Mar 13, 2003
- Messages
- 246
Hokay, firstly my sincere apologies for being a complete newbie at this kind of thing, but I'm having real trouble getting certain funtions working on a database I'm trying to write for work.
To give you some background first, I'm running Access 2000 on a Windows 98SE machine.
I have a database which logs various customers, consisting of the following:
2 x Tables (one holding the coredata of all our customers, the other listing the switchboard items)
2 x Forms (one aesthetically pleasing form which displays the coredata, one switchboard - linked to the coredata table)
3 x Macros (three commands used by the switchboard to view, edit, or add records to the coredata file)
Most of the database has been written and, pleasently surprisingly, seems to work fine, but I'm having trouble adding the following desired functions:
1) I'm trying to get a filter up and running, primarily so I can print out certain customer details who are to defined by the date when they purchased our product. I have a date field in both my Table and Form, but need to setup a button on the Switchboard which will allow me to enter a range of dates and result in showing just those records which have dates between the two figures entered. As a sub required to this, I need to be able to click a button (on the form I assume) that will allow me to print out this filtered record. I think my solution lies in doing something with queries, which I've played with, but can't get to work properly.
2) This is probably a stupid question, but is it possible to finalise the database in any way, such that you don't need to load it into Access? What I'm aiming for is a - preferably single - executable file which contains all the data, and can continue to be used (i.e. records added, etc.).
3) I have a record navigation (find keyword in records) button on the layout of my actual Form, but would like to move it to the Switchboard. Unfortuantely, whilst I can write a button for it, everytime I press it when the database is live, I get an error message telling me that it cannot find coredata1 (the name of my Table which contains all the information). Linked to this problem, is it possible to create a button which acts like a search for keyword funtion, regardless of where it is in the database? At the moment, my Find just opens the ordinary 'find' option, which necessitiates the setting of the field in which to search, and whether complete or any part of the chosen field. I'd rather have a single button which brings up a box so you can enter any keyword and the database will recall the record(s) contain that word, regardless of the field in which that keyword appears.
4) Finally, I have had to have added a new field, which Access seems to now be treating as the primary key. How can I change the primary key back to the original field I had before?
I'm sorry for asking what I'm sure are stupidly simple questions, but when you don't have the answer it's understandly frustrating!
Thanks for reading the post.
To give you some background first, I'm running Access 2000 on a Windows 98SE machine.
I have a database which logs various customers, consisting of the following:
2 x Tables (one holding the coredata of all our customers, the other listing the switchboard items)
2 x Forms (one aesthetically pleasing form which displays the coredata, one switchboard - linked to the coredata table)
3 x Macros (three commands used by the switchboard to view, edit, or add records to the coredata file)
Most of the database has been written and, pleasently surprisingly, seems to work fine, but I'm having trouble adding the following desired functions:
1) I'm trying to get a filter up and running, primarily so I can print out certain customer details who are to defined by the date when they purchased our product. I have a date field in both my Table and Form, but need to setup a button on the Switchboard which will allow me to enter a range of dates and result in showing just those records which have dates between the two figures entered. As a sub required to this, I need to be able to click a button (on the form I assume) that will allow me to print out this filtered record. I think my solution lies in doing something with queries, which I've played with, but can't get to work properly.
2) This is probably a stupid question, but is it possible to finalise the database in any way, such that you don't need to load it into Access? What I'm aiming for is a - preferably single - executable file which contains all the data, and can continue to be used (i.e. records added, etc.).
3) I have a record navigation (find keyword in records) button on the layout of my actual Form, but would like to move it to the Switchboard. Unfortuantely, whilst I can write a button for it, everytime I press it when the database is live, I get an error message telling me that it cannot find coredata1 (the name of my Table which contains all the information). Linked to this problem, is it possible to create a button which acts like a search for keyword funtion, regardless of where it is in the database? At the moment, my Find just opens the ordinary 'find' option, which necessitiates the setting of the field in which to search, and whether complete or any part of the chosen field. I'd rather have a single button which brings up a box so you can enter any keyword and the database will recall the record(s) contain that word, regardless of the field in which that keyword appears.
4) Finally, I have had to have added a new field, which Access seems to now be treating as the primary key. How can I change the primary key back to the original field I had before?
I'm sorry for asking what I'm sure are stupidly simple questions, but when you don't have the answer it's understandly frustrating!
Thanks for reading the post.