473,385 Members | 1,730 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Replacement of a name of the table in query

I have a form bases on a query. That query has a standart command Select tabFinance_6_2013.Input, tabFinance_6_2013.Price ...
I need put another name of table (that has the same structure) for example tabFinance_5_2013. I need to do this from my form. In the beginning I tried to use Select ["& Name &"].Input, ["& Name &"].Price ... The Name is "tabFinance_5_2013" or another. But I didn't have a result. Tell me please how I can solve this problem. Thanks a lot.
Jun 16 '13 #1
4 1202
Oralloy
988 Expert 512MB
Anatoly77,

First off, make sure the queries that you are building are correctly formed.

There are several ways to do this, the simplest is to simply print it out and then copy-paste into a query window SQL view, and then execute the thing.

If that works, then I assume that you aren't assigning the data source to your form correctly.

Cheers,
Oralloy
Jun 16 '13 #2
Oralloy,
thanks for your prompt reply. The queries was built by Access and perfectly works, but with only one table "tabFinance_6_2013". In form I wish to have a possibility to be switched to other table and that in the text Select... there was a name change automatically.
Cheers,
Anatoly
Jun 16 '13 #3
Seth Schrock
2,965 Expert 2GB
It looks like you are suffering from not having your database normalized as I would guess by the names of the tables that you have a separate table for each month. I realize that you might not have permission to change the design of the database, but if you do, then you seriously need to consider normalizing it. Here is a link on what normalization is: Database Normalization and Table Structures.

As to your question, are you trying to combine the results from two tables into one query, or just change which table you are pulling from?
Jun 17 '13 #4
@Seth Schrock
I have a separate table for each month and I need only change the table I am pulling from?
Yesterday I have solved this problem. It becomes by means of program change Form. RecordSource and form updatings. Thanks for participation in my searches. All the best, Anatoly.
Jun 17 '13 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: PMB | last post by:
Thank you in advance for any and all assistance. I'm trying to use a make table query to pull the last transactionID, so I can use an append query to reset the transactionID to the next...
1
by: JJ | last post by:
I have a Make Table query which uses a date parameter. Each time the user runs the query they will be prompted for a date. The table which is created should be named based on the date which they...
2
by: Mo Ka | last post by:
Hi all, Is there a function (or other method) to automatically append the system date to the output tablename of a make table query such that the new one does not overwrite an older table?. I...
4
by: Alan Lane | last post by:
Hello world: I'm including both code and examples of query output. I appologize if that makes this message longer than it should be. Anyway, I need to change the query below into a pivot table...
20
by: Neil Robbins | last post by:
I am trying to execute a make table query in my vb.net program. The db that I am accessing is an Access 2000 format db. The SQL code that I am using has been cut and pasted from the SQL View having...
4
by: ken | last post by:
Hi, I use this command to run a make table query without opening it... CurrentDb.Execute "make table query name" Access tells me that it can't execute a select query...? Its a make table query...
1
by: colleen1980 | last post by:
There is a form where it ask the two dates and then run a query then report. Private Sub Command36_Click() DoCmd.OpenQuery "qryResultsReport" DoCmd.OpenReport "rpt_TopTen", acPreview, "", ""...
3
by: Robertf987 | last post by:
Hi, I'm a bit stuck with an access database. I'm using access 2000 if that's any help. Right, it's 3:40am right now and I'm rather tired, but I *hope* this makes sense. I have a table which...
24
by: Dan2kx | last post by:
Hello to all that read and thank you to all that post Background: I have been tasked to create a holiday database for the employees in my lab, (so expect many more posts) im stuck at the first...
2
by: Laurel | last post by:
I am completely new to access. I have a make-table query that combines data from two/more tables, asks for a criteria, deletes the old table and produces a new table every time under the same name....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.