PC Review


Reply
Thread Tools Rate Thread

Automate Access 2003 to input a standardised record.

 
 
chrissfcs
Guest
Posts: n/a
 
      17th May 2010
I have set up an enquiry database that holds enquiry data for a
Library/Learning Centre. There are two or three standard type enquiries that
I want to make quicker and easier for the user to input. I have tried using
SetValue but this only works if you input some data in a field first and
specify the data for the other fields. Is there a way that I can fully
automate a record input from a button press.
 
Reply With Quote
 
 
 
 
Steve Schapel
Guest
Posts: n/a
 
      17th May 2010
Chris,

Make an Update Query to add the data you want to a new record. You can use
the OpenQuery action in a macro to run the update.

--
Steve Schapel, Microsoft Access MVP


"chrissfcs" <(E-Mail Removed)> wrote in message
news6A55FEF-1784-43BF-9128-(E-Mail Removed)...
> I have set up an enquiry database that holds enquiry data for a
> Library/Learning Centre. There are two or three standard type enquiries
> that
> I want to make quicker and easier for the user to input. I have tried
> using
> SetValue but this only works if you input some data in a field first and
> specify the data for the other fields. Is there a way that I can fully
> automate a record input from a button press.


 
Reply With Quote
 
chrissfcs
Guest
Posts: n/a
 
      18th May 2010
Thanks for this, I've been trying with Append Queries and managed to get a
duplicate last record button from that, but I never thought of trying an
update query. I'll try it. Thanks again.

"Steve Schapel" wrote:

> Chris,
>
> Make an Update Query to add the data you want to a new record. You can use
> the OpenQuery action in a macro to run the update.
>
> --
> Steve Schapel, Microsoft Access MVP
>
>
> "chrissfcs" <(E-Mail Removed)> wrote in message
> news6A55FEF-1784-43BF-9128-(E-Mail Removed)...
> > I have set up an enquiry database that holds enquiry data for a
> > Library/Learning Centre. There are two or three standard type enquiries
> > that
> > I want to make quicker and easier for the user to input. I have tried
> > using
> > SetValue but this only works if you input some data in a field first and
> > specify the data for the other fields. Is there a way that I can fully
> > automate a record input from a button press.

>
> .
>

 
Reply With Quote
 
Steve Schapel
Guest
Posts: n/a
 
      18th May 2010
Chris,

An Append Query will be applicable if you are creating the new record, with
the data that you want automatically inserted. An Update Query will be
applicable if you already have a new record created, and you want to write
the automated data into it. I am not sure from your description which way
this will go.

--
Steve Schapel, Microsoft Access MVP


"chrissfcs" <(E-Mail Removed)> wrote in message
news:A371D8D2-AA9B-476D-A5FE-(E-Mail Removed)...
> Thanks for this, I've been trying with Append Queries and managed to get a
> duplicate last record button from that, but I never thought of trying an
> update query. I'll try it. Thanks again.
>
> "Steve Schapel" wrote:
>
>> Chris,
>>
>> Make an Update Query to add the data you want to a new record. You can
>> use
>> the OpenQuery action in a macro to run the update.
>>
>> --
>> Steve Schapel, Microsoft Access MVP
>>
>>
>> "chrissfcs" <(E-Mail Removed)> wrote in message
>> news6A55FEF-1784-43BF-9128-(E-Mail Removed)...
>> > I have set up an enquiry database that holds enquiry data for a
>> > Library/Learning Centre. There are two or three standard type
>> > enquiries
>> > that
>> > I want to make quicker and easier for the user to input. I have tried
>> > using
>> > SetValue but this only works if you input some data in a field first
>> > and
>> > specify the data for the other fields. Is there a way that I can fully
>> > automate a record input from a button press.

>>
>> .
>>

 
Reply With Quote
 
chrissfcs
Guest
Posts: n/a
 
      21st May 2010
Thanks Steve, it is the Append Query I needed. I have created what I need,
but I do have another problem now. I'll explain:-

The data is added to a new record, being a record of enquiries received.
If you remember I successfully created a Duplicate Record button which I got
from the wizard when I put the button on my form. That was working fine.

The way I got the standard records to be added was by making another table
with the standard records in, then making an Append Query for each record.
Then I made a macro for each append query that added the record to the main
enquiries table and gave a confirmation message before returning to the main
form for another record entry.

I tested my new buttons and they worked okay. BUT!.... My Duplicate Last
Record button does not work now! I get an error messaga that reads,
"Visual Basic for Applications (VBA) encountered a problem while attempting
to access a property or method. The problem may be one of the following.
Reference is missing or Expession misspelled."

I'm nearly there - can you help me please?

Chris.

"Steve Schapel" wrote:

> Chris,
>
> An Append Query will be applicable if you are creating the new record, with
> the data that you want automatically inserted. An Update Query will be
> applicable if you already have a new record created, and you want to write
> the automated data into it. I am not sure from your description which way
> this will go.
>
> --
> Steve Schapel, Microsoft Access MVP
>
>
> "chrissfcs" <(E-Mail Removed)> wrote in message
> news:A371D8D2-AA9B-476D-A5FE-(E-Mail Removed)...
> > Thanks for this, I've been trying with Append Queries and managed to get a
> > duplicate last record button from that, but I never thought of trying an
> > update query. I'll try it. Thanks again.
> >
> > "Steve Schapel" wrote:
> >
> >> Chris,
> >>
> >> Make an Update Query to add the data you want to a new record. You can
> >> use
> >> the OpenQuery action in a macro to run the update.
> >>
> >> --
> >> Steve Schapel, Microsoft Access MVP
> >>
> >>
> >> "chrissfcs" <(E-Mail Removed)> wrote in message
> >> news6A55FEF-1784-43BF-9128-(E-Mail Removed)...
> >> > I have set up an enquiry database that holds enquiry data for a
> >> > Library/Learning Centre. There are two or three standard type
> >> > enquiries
> >> > that
> >> > I want to make quicker and easier for the user to input. I have tried
> >> > using
> >> > SetValue but this only works if you input some data in a field first
> >> > and
> >> > specify the data for the other fields. Is there a way that I can fully
> >> > automate a record input from a button press.
> >>
> >> .
> >>

> .
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automate Macros in ACCESS 2003 VBmatta via AccessMonster.com Microsoft Access Macros 1 12th May 2007 09:29 PM
How to automate LDAP instead of waiting for my input (2003) =?Utf-8?B?TmlnZWxsb3R0aQ==?= Microsoft Outlook Installation 1 26th Jun 2006 12:35 AM
How can I automate an object in Access 2003 =?Utf-8?B?T21hcg==?= Microsoft Access Macros 0 27th Jan 2006 05:17 PM
Automate Saving Access 2003 to Access 2000 and Access 97 =?Utf-8?B?Q2hlcnls?= Microsoft Access VBA Modules 10 1st Oct 2005 08:20 AM
Automate emailing attachements using Access 2003 and Outlook 2003 =?Utf-8?B?Q3JhaWc=?= Microsoft Access 1 1st Apr 2005 12:17 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:54 AM.