PC Review


Reply
Thread Tools Rate Thread

add a record

 
 
Dennis M
Guest
Posts: n/a
 
      15th Nov 2008
I have a 2003 db, that if I have sort or a filter on, will not let me add a
record.
I added code to clear the filter when add record is done, but now find that
sort is a problem also.

Just doesn't sound right. Don't feel I need to add the code for either, may
be another problem.

Not a VB expert.

Thanks
 
Reply With Quote
 
 
 
 
John W. Vinson
Guest
Posts: n/a
 
      15th Nov 2008
On Sat, 15 Nov 2008 10:02:01 -0800, Dennis M <Dennis
(E-Mail Removed)> wrote:

>I have a 2003 db, that if I have sort or a filter on, will not let me add a
>record.
>I added code to clear the filter when add record is done, but now find that
>sort is a problem also.
>
>Just doesn't sound right. Don't feel I need to add the code for either, may
>be another problem.
>
>Not a VB expert.
>
>Thanks


No VBA is needed to either filter or sort a recordset. You can't sort or
filter a database - a Database in Access jargon is the .mdb or .accdb file, a
container for multiple tables, forms, reports, etc. Also you say "is a problem
also" without any indication of the nature of the problem.

What are you ACTUALLY doing? Do you have a Form? If so what is its
Recordsource property? Or are you using a query datasheet? If so what's the
SQL view of the query?
--

John W. Vinson [MVP]
 
Reply With Quote
 
Dennis M
Guest
Posts: n/a
 
      15th Nov 2008


"John W. Vinson" wrote:

> On Sat, 15 Nov 2008 10:02:01 -0800, Dennis M <Dennis
> (E-Mail Removed)> wrote:
>
> >I have a 2003 db, that if I have sort or a filter on, will not let me add a
> >record.
> >I added code to clear the filter when add record is done, but now find that
> >sort is a problem also.
> >
> >Just doesn't sound right. Don't feel I need to add the code for either, may
> >be another problem.
> >
> >Not a VB expert.
> >
> >Thanks

>
> No VBA is needed to either filter or sort a recordset. You can't sort or
> filter a database - a Database in Access jargon is the .mdb or .accdb file, a
> container for multiple tables, forms, reports, etc. Also you say "is a problem
> also" without any indication of the nature of the problem.
>
> What are you ACTUALLY doing? Do you have a Form? If so what is its
> Recordsource property? Or are you using a query datasheet? If so what's the
> SQL view of the query?
> --
>
> John W. Vinson [MVP]
>

 
Reply With Quote
 
Dennis M
Guest
Posts: n/a
 
      15th Nov 2008
John,

This is a Sql server with about 6800 records. This is when we are entering
new license in the database, the operator sorts and filters on license names
and numbers when they have to edit a record. Then to add a new record they
couldn't if a filter was on one of the fields, we have several types of
licenses in the db. The "is also a problem" is if it is sorted alpa numeric
causes the add new record to go gray. I dont have the db in front of me now,
its at work, was developed in 2003 in access and the forms are just relinked
every year to a new table with new year dates. We are changing all out later
next year so we just need to get this one working a little better. If they
rememebr to clear the sort and the filter you canadd a new record. The forms
use querys and select statements. My expertice was in Fox Pro but not in
programming

"John W. Vinson" wrote:

> On Sat, 15 Nov 2008 10:02:01 -0800, Dennis M <Dennis
> (E-Mail Removed)> wrote:
>
> >I have a 2003 db, that if I have sort or a filter on, will not let me add a
> >record.
> >I added code to clear the filter when add record is done, but now find that
> >sort is a problem also.
> >
> >Just doesn't sound right. Don't feel I need to add the code for either, may
> >be another problem.
> >
> >Not a VB expert.
> >
> >Thanks

>
> No VBA is needed to either filter or sort a recordset. You can't sort or
> filter a database - a Database in Access jargon is the .mdb or .accdb file, a
> container for multiple tables, forms, reports, etc. Also you say "is a problem
> also" without any indication of the nature of the problem.
>
> What are you ACTUALLY doing? Do you have a Form? If so what is its
> Recordsource property? Or are you using a query datasheet? If so what's the
> SQL view of the query?
> --
>
> John W. Vinson [MVP]
>

 
Reply With Quote
 
John W. Vinson
Guest
Posts: n/a
 
      16th Nov 2008
On Sat, 15 Nov 2008 15:22:01 -0800, Dennis M
<(E-Mail Removed)> wrote:

>John,
>
>This is a Sql server with about 6800 records. This is when we are entering
>new license in the database, the operator sorts and filters on license names
>and numbers when they have to edit a record. Then to add a new record they
>couldn't if a filter was on one of the fields, we have several types of
>licenses in the db. The "is also a problem" is if it is sorted alpa numeric
>causes the add new record to go gray. I dont have the db in front of me now,
>its at work, was developed in 2003 in access and the forms are just relinked
>every year to a new table with new year dates. We are changing all out later
>next year so we just need to get this one working a little better. If they
>rememebr to clear the sort and the filter you canadd a new record. The forms
>use querys and select statements. My expertice was in Fox Pro but not in
>programming


Very interesting... but not what we'll be needing, I fear!

Again... *We cannot see the database*.

You have not posted any description of the Table.
You have not posted the Recordsource for the form.
You have not posted the code or method used to "sort or filter", nor indicated
why that is necessary in order to enter data..
You have not posted what you mean by "go gray".

We'll try to help, but you will need to help us understand the structure of
the database before we will be able to do so.
--

John W. Vinson [MVP]
 
Reply With Quote
 
Dennis M
Guest
Posts: n/a
 
      16th Nov 2008
There are 4 tables and 30 colums in license table, 10 in Corpheadquarters, 5
in lictype, 5 in licstatus
The License table is updated by the data entry people from main lic form
Sort is using access tools to sort, no special code. We also have combo
boxes for selection on type and status.

I will send screen shot if you like, it is the * at the bottom of the form
that grey out that means you can't add a record, excape won't clear that
either.

Filtersa nd sort ar not necessary to enter new records just to find them
quickly. That is when they can't update to new record


"John W. Vinson" wrote:

> On Sat, 15 Nov 2008 15:22:01 -0800, Dennis M
> <(E-Mail Removed)> wrote:
>
> >John,
> >
> >This is a Sql server with about 6800 records. This is when we are entering
> >new license in the database, the operator sorts and filters on license names
> >and numbers when they have to edit a record. Then to add a new record they
> >couldn't if a filter was on one of the fields, we have several types of
> >licenses in the db. The "is also a problem" is if it is sorted alpa numeric
> >causes the add new record to go gray. I dont have the db in front of me now,
> >its at work, was developed in 2003 in access and the forms are just relinked
> >every year to a new table with new year dates. We are changing all out later
> >next year so we just need to get this one working a little better. If they
> >rememebr to clear the sort and the filter you canadd a new record. The forms
> >use querys and select statements. My expertice was in Fox Pro but not in
> >programming

>
> Very interesting... but not what we'll be needing, I fear!
>
> Again... *We cannot see the database*.
>
> You have not posted any description of the Table.
> You have not posted the Recordsource for the form.
> You have not posted the code or method used to "sort or filter", nor indicated
> why that is necessary in order to enter data..
> You have not posted what you mean by "go gray".
>
> We'll try to help, but you will need to help us understand the structure of
> the database before we will be able to do so.
> --
>
> John W. Vinson [MVP]
>

 
Reply With Quote
 
John W. Vinson
Guest
Posts: n/a
 
      16th Nov 2008
On Sun, 16 Nov 2008 05:14:02 -0800, Dennis M
<(E-Mail Removed)> wrote:

>There are 4 tables and 30 colums in license table, 10 in Corpheadquarters, 5
>in lictype, 5 in licstatus
>The License table is updated by the data entry people from main lic form
>Sort is using access tools to sort, no special code. We also have combo
>boxes for selection on type and status.
>
>I will send screen shot if you like, it is the * at the bottom of the form
>that grey out that means you can't add a record, excape won't clear that
>either.
>
>Filtersa nd sort ar not necessary to enter new records just to find them
>quickly. That is when they can't update to new record
>


The screenshot isn't really necessary or much help. Please instead open the
Form in design view; view its Properties. Select the Data tab and click the
.... icon by the Record Source property. What's there? If it's a Query (as is
likely given the symptoms) please click the ... icon by it to open a query
design window, and select View... SQL; post the SQL string here.
--

John W. Vinson [MVP]
 
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
Select Record in query, save as New Record then edit New Record spreadsheetlady Microsoft Access 1 26th Jan 2010 09:41 PM
adding a new record at subform should update an existing record (not create new record) Mark Kubicki Microsoft Access Form Coding 1 16th Jan 2009 08:34 AM
Find Record action to display a record that is the current record on another for Tom K via AccessMonster.com Microsoft Access Macros 0 31st Oct 2005 07:45 PM
Current Record Count, Previous Record #, Add New Record =?Utf-8?B?Um9iZXJ0IE51c3ogQCBEUFM=?= Microsoft Access Forms 0 15th Feb 2005 08:35 PM
I am trying to get a form to pick up the record data from a different record to this new record Thomas Simsion Microsoft Access Forms 4 10th Nov 2003 09:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:20 PM.