Solved Query selection in Access 2000. (1 Viewer)

Woodpecker

Member
Local time
Today, 07:30
Joined
Apr 30, 2023
Messages
39
Thanks for your observations June7. The Expr1 label never originally existed. It was Media, but somehow changed itself to Expr1. I've had to edit all the queries that it affected. You've already said that pop ups shouldn't be used as a user input for a query, which I'm going to put into practice once I get to understand combo boxes. Any tips here would be well received!
 

Gasman

Enthusiastic Amateur
Local time
Today, 07:30
Joined
Sep 21, 2011
Messages
14,299
OK, yes I forgot you had already loaded half of your DB. :-( Sorry.

I imported and renamed the Media table, as that seemed the easiest option. Also renamed the Media field.

Query now works, and as you say You get a Record Deleted message and the records all change to #Name.

No idea at the moment whatsoever :(
I have never seen a message come from a query like that before. It happens on several of your queries, not just the one you mentioned, but no others.
I cannot see any code in the DB and cannot tell is a record is actually being deleted or not.

However I imported it all into a new DB and that deletion message no longer appears, nor do the records change to #Name. So I can only assume corruption?.
 

Attachments

  • Test Media.zip
    704.5 KB · Views: 61

Woodpecker

Member
Local time
Today, 07:30
Joined
Apr 30, 2023
Messages
39
Yes, despite the deletion message, no records are deleted. It also misbehaves when inputting the criteria for a pop-up, it asks me two or three times for the same input. I am suspecting (or hoping) that all these problems are the result of corruption, which through your perseverance, appear to have overcome by importing into a new db. Could you run through the procedure for doing this please Gasman?
 

Gasman

Enthusiastic Amateur
Local time
Today, 07:30
Joined
Sep 21, 2011
Messages
14,299
Just create a new db and import everything from your old one.
I did that with the db I uploaded, which now has your media table as a local table.
So if that was your real db, it has already been done for you. The renaming of fields to their old name as well. :)
 

Woodpecker

Member
Local time
Today, 07:30
Joined
Apr 30, 2023
Messages
39
Thanks very much Gasman. Where will I find the file you've uploaded?
 

Woodpecker

Member
Local time
Today, 07:30
Joined
Apr 30, 2023
Messages
39
Oh yes, thanks Gasman. Unfortunately I'm still using Access 2000. Would you mind saving the .ACCDB file to .MDB and resending. Thanks
 

Gasman

Enthusiastic Amateur
Local time
Today, 07:30
Joined
Sep 21, 2011
Messages
14,299
Might be a while as I am out in the community van all day.
Just create a new db and rename as I did, or perhaps someone else can convert it before I get back home.
Sorry about that. :(
 

Gasman

Enthusiastic Amateur
Local time
Today, 07:30
Joined
Sep 21, 2011
Messages
14,299
Ok, found a few minutes between trips.
 

Attachments

  • Test Media MDB.zip
    644.5 KB · Views: 60

Pat Hartman

Super Moderator
Staff member
Local time
Today, 02:30
Joined
Feb 19, 2002
Messages
43,275
Regarding the queries where everything got renamed to Expr#, That happens when you delete a table or query that a query references. I'm not sure what causes Access to do this, I believe it happens during a C&R. Sooo, if you have a process where you delete and recreate a table, don't do the delete after the process is finished, do the delete as the first step of replacing the table. This minimizes the chances of Access "helping" you out and messing up your queries.
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 02:30
Joined
Feb 19, 2002
Messages
43,275
You're welcome. Sometimes Access help can be very painful. I have the scars to prove it;)
 

Woodpecker

Member
Local time
Today, 07:30
Joined
Apr 30, 2023
Messages
39
Can anybody tell me where my query results have gone ? I've two linked files on my Access 2000, Recording and Media. The Media File has a Media Type field, which has been populated with three different values, - DVD-R, PRE, and RAM. I've written a query (see attached query) in order to list the db contents by Media Type. When I run it and input RAM, it lists all records with a Media Type field value of RAM, but however, when I input either DVD-R or PRE, it doesn't return any results at all, - very strange!
 

Attachments

  • Access Media Type Query 06.jpg
    Access Media Type Query 06.jpg
    50.7 KB · Views: 60

Woodpecker

Member
Local time
Today, 07:30
Joined
Apr 30, 2023
Messages
39
Being a 'new kid on the block', I'm green when it comes to forum form & etiquette. I'm not sure if I should be starting a new thread, continually following up an individuals replies etc. I'd like to be knowledgable enough in Access to be able to help others myself, but until then I'll have to just keep asking the question while other kind souls answer it for me. If anyone sees me dropping a huge clanger, please tell me....I won't cry.... Honest!
 

Gasman

Enthusiastic Amateur
Local time
Today, 07:30
Joined
Sep 21, 2011
Messages
14,299
I'd be asking a new question.
As I already have your db, what query are you running.?
Never mind, created it myself.

Works for me?
1683744851636.png

However no PRE ?
These are the PRE from the media table
1683745179354.png

And you have no disk in the recordings table > 77701
As the join is an inner join, data must be in both tables, so no data shown.
 
Last edited:

Gasman

Enthusiastic Amateur
Local time
Today, 07:30
Joined
Sep 21, 2011
Messages
14,299
As we are already in 36 posts in this thread :( , I would start a new thread if my last post does not solve your problem.
 

CarlettoFed

Member
Local time
Today, 08:30
Joined
Jun 10, 2020
Messages
119
In the attached file you can see an example with your normalized data and search form.
 

Attachments

  • Recordings.zip
    251 KB · Views: 65

isladogs

MVP / VIP
Local time
Today, 07:30
Joined
Jan 14, 2017
Messages
18,221
I have just dipped into this thread but not read all posts
You will also see Expr# in query fields where a referenced table or its fields have been renamed without the Name AutoCorrect feature being used.
 

Woodpecker

Member
Local time
Today, 07:30
Joined
Apr 30, 2023
Messages
39
I'd be asking a new question.
As I already have your db, what query are you running.?
Never mind, created it myself.

Works for me?
View attachment 107906
However no PRE ?
These are the PRE from the media table
View attachment 107907
An you have no disk in the recordings table > 77701
As the join is an inner join, data must be in both tables, so no data shown.
Yes, thanks
I'd be asking a new question.
As I already have your db, what query are you running.?
Never mind, created it myself.

Works for me?
View attachment 107906
However no PRE ?
These are the PRE from the media table
View attachment 107907
An you have no disk in the recordings table > 77701
As the join is an inner join, data must be in both tables, so no data shown.
Yes, thanks Gasman. Should have worked that one out for myself eh!
 

Users who are viewing this thread

Top Bottom