Re: Form Save
- From: "Jeanette Cunningham" <nnn@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 29 Jan 2008 08:22:51 +1100
Yes, that is how Access works, the autonumber primary key is not created
until you begin entering data.
Normally, after you enter data for a new record, the data is automatically
saved when you go to a new record.
You wouldn't need to make any macro the save the record, unless you have a
close button on the form.
I'm not sure I've understood your question.
Do you have a problem with saving?
Jeanette Cunningham
"Zanstemic" <Zanstemic@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D0CDE6F3-3632-4B88-9D5D-7107565BE254@xxxxxxxxxxxxxxxx
I have a command button with a macro that opens a form and than does a
GoToRecord New. It has 4 fields
1) Auto Number (Primary Key and auto increments in system)
2) Date (defaults to now() )
3) Increment number (defaults to the number of records for that day)
4) Case Number (defaults to the combination of Date and Increment Number)
It's all working fine, except I can't figure out how to get the record to
auto save. I've tried a number of Docmd.Save or Requiry or macro saves,
etc.
It seems that until I actually type something in the form, the Primary Key
which is an auto number for the record does not get created. Once I type
in
any field, the Auto Number is created and funtions normally.
Any suggestions are appreciated.
.
- Follow-Ups:
- Re: Form Save
- From: Zanstemic
- Re: Form Save
- Prev by Date: RE: Automation: Sending data from Access to Word
- Next by Date: Using Excel to check Access db for matching record
- Previous by thread: RE: Automation: Sending data from Access to Word
- Next by thread: Re: Form Save
- Index(es):
Relevant Pages
|