04-08-2004, 15:27
|
#1
|
|
cf.mega poster
Join Date: Jun 2003
Location: England
Services: I no longer receive cable services, I blame the inept accounts dept for that.
Posts: 3,732
|
MS Access Guru sought?
Hello world,
I am wanting to write a small MS Access 97 database to store the information of when a drawing is issued, keeping information in such as:
Drawing name,
issue,
description,
date of issue,
issued to,
issued by
comments.
"Date of issue" to be automaticaly put in (not sure how?)
"issued to" to be selected from a drop down list or overwritten. (I can do the dropdown, but overwriting?)
"issued by" to automaticaly be filled in by finding the windows username (yet overwritable). ((I have no idea where to start with this?)
Can anyone help or suggest ways of doing the ? marked bits above please.
Thankyou,
__________________
Not really visiting CF much these days....
If you need me, PM me.
|
|
|
04-08-2004, 15:41
|
#2
|
|
RIP
Join Date: Jun 2003
Location: Leicester
Posts: 818
|
Re: MS Access Guru sought?
Quote:
|
Originally Posted by zoombini
"issued by" to automaticaly be filled in by finding the windows username (yet overwritable). ((I have no idea where to start with this?)
|
Not a great expert on this but my understanding is that you can't get Access to read the windows logon. I think it can only be done from enforcing a database logon. If I'm talking out of the rear orifice and someone show's you how it is done can you let me know how please
As for the overwriteing, in both cases you should be able to do it in the text box properties field, I can't remember exactly how. If I can get to a copy of Access in the next couple of days I'll have a nose and let you know.
|
|
|
04-08-2004, 15:42
|
#3
|
|
Inactive
Join Date: Oct 2003
Location: East Midlands
Age: 48
Services: Rural BB - Radio Link via Virgin Fibre
Posts: 2,947
|
Re: MS Access Guru sought?
the date field just has to be set as the data type "date/time"
to make a dropdown just use the data type "lookup wizard"
not sure about the username bit.. it would be better to create the database with specific users if you want to do that
|
|
|
04-08-2004, 16:00
|
#5
|
|
Inactive
Join Date: Jun 2003
Location: Belfast
Age: 46
Posts: 4,594
|
Re: MS Access Guru sought?
If the database is just going to be used on NT, 2000, XP machines then you can just use =Environ("Username") to get the name
|
|
|
04-08-2004, 16:24
|
#6
|
|
cf.mega poster
Join Date: Jun 2003
Location: England
Services: I no longer receive cable services, I blame the inept accounts dept for that.
Posts: 3,732
|
Re: MS Access Guru sought?
After having had a play I can see now that I can use "=CurrentUser" to make it put the Access users name in a field, however this also then means that I have to create a list of users etc that have access to it.
Not hard I suppose, the link above to use the windows logon name is way over my head, I just want to autofill a field when filling in a form not a query?
__________________
Not really visiting CF much these days....
If you need me, PM me.
|
|
|
04-08-2004, 16:38
|
#7
|
|
Inactive
Join Date: Jun 2003
Location: Belfast
Age: 46
Posts: 4,594
|
Re: MS Access Guru sought?
Quote:
|
Originally Posted by zoombini
Not hard I suppose, the link above to use the windows logon name is way over my head, I just want to autofill a field when filling in a form not a query?
|
Then instead of putting the getusername() in the query you would put =getusername() as the control source of the field in the form.
|
|
|
04-08-2004, 17:51
|
#8
|
|
Inactive
Join Date: Jun 2003
Location: 127.0.0.1
Age: 62
Posts: 15,868
|
Re: MS Access Guru sought?
To create a drop down list you are using a "lookup list" for the data field. that can either be from another data table, or you can create a small list embedded in the properties of the field. Use of another table is more versatile and easily changed if your data values are likely to alter.
In the properties for the field simply set "limit to list = No" to enable stuff other than what is in the dropdown to be entered.
|
|
|
04-08-2004, 20:07
|
#9
|
|
Inactive
Join Date: Nov 2003
Location: Grimsby
Posts: 199
|
Re: MS Access Guru sought?
....for the date, set the field type to date/time then set the default value to =Now()
Also I would put the 'Issue' info in a seperate table linked to the main 'Drawing' table with the Drawing Number as the Primary key (link) you can then put the issue info in as a subform and have all the issue history together, assuming a drawing may be issued several times at different revisions.
|
|
|
04-08-2004, 20:32
|
#10
|
|
Inactive
Join Date: Jun 2003
Location: Surrey
Age: 59
Services: Virgin stuff
Posts: 6,407
|
Re: MS Access Guru sought?
ok ... I've got one for you lot
Working on a Db, and I need to feed a date to a query ... preferably from a form.
i.e. get records added after date ..... the date is recorded on each record creation.
|
|
|
04-08-2004, 20:40
|
#11
|
|
Inactive
Join Date: Jun 2003
Location: Belfast
Age: 46
Posts: 4,594
|
Re: MS Access Guru sought?
I'm at home, so can't remember exactly but if you want a query to get the date from the form then its in the query its something like [forms]![formname]![controlonform]
|
|
|
04-08-2004, 20:51
|
#12
|
|
Inactive
Join Date: Nov 2003
Location: Grimsby
Posts: 199
|
Re: MS Access Guru sought?
IIRC, gazzae is correct, you could run the query from a control on the form along with a default value for say, today to get all the records from the inputed date to now.
|
|
|
05-08-2004, 01:53
|
#13
|
|
Inactive
Join Date: Nov 2003
Location: Leeds - the dog house
Age: 49
Services: Email me for a current price list
Posts: 8,270
|
Re: MS Access Guru sought?
Quote:
|
Originally Posted by Indians
IIRC, gazzae is correct, you could run the query from a control on the form along with a default value for say, today to get all the records from the inputed date to now.
|
Yeah. An unbound form with a control to enter the date and a "Go" button to run the query.
There's an Access 2000 database here. It was part of an assignment when I was at Uni. It's not brilliant but it might be useful for ideas.
|
|
|
05-08-2004, 10:04
|
#14
|
|
Inactive
Join Date: Nov 2003
Location: Grimsby
Posts: 199
|
Re: MS Access Guru sought?
If u want a small dbase to do 'Transmittals' let me know I have a blank in Access 97 u could use as a basis for your own.
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 17:14.
|