How to move the last column to as first column. Im using microsoft access 2000. Please guide me in syntax because im doing a tools to update my database.
Moving column
Collapse
X
-
Tags: None
-
Hi. We cannot help you from what you have told us so far - please provide more detail. In particular:
If you are referring to a table or query, what is the metadata (the field names and types) for that table or query?
What do you mean by 'Column'? Do you mean a specific field in your table, or a specific row (record)? Or are you referring to a form?
It is impossible to give you any form of positive answer to your question at present.
Please read the POSTING GUIDELINES to assist you.
-Stewart
Originally posted by vaniKanabathyHow to move the last column to as first column. Im using microsoft access 2000. Please guide me in syntax because im doing a tools to update my database. -
it like tis i want to add a field in the table but usually it just append at table. I want the field to be added as a first field. My query was not worked.
ALTER TABLE alternator ADD AltID Numeric FIRSTComment
-
Hi. You are still providing very little information, but I think I understand what you are trying to achieve. You are confusing the physical field order in the table with the sequence of what you display to users. The ALTER TABLE statement cannot change the physical order of the fields in your table - nor does it need to. Use it to add new fields as necessary, then show them using a SELECT statement in whatever order you want, i.e.
SELECT ALTID, Field2, Field3 ... FieldN from Alternator;
-Stewart
Originally posted by vaniKanabathyit like tis i want to add a field in the table but usually it just append at table. I want the field to be added as a first field. My query was not worked.
ALTER TABLE alternator ADD AltID Numeric FIRSTComment
-
Comment
-
Why do you want to change the field order? As Stewart tried to explain, the order of a given column in your table doesn't matter in the least. The order can be controlled when the data is displayed thru forms or queries, which is the only way end users should be allowed to access the data.
Linq ;0)>Comment
-
I know but i wan the altid at begining of the table. i just wan the query....my boss want it.....so i had 2 follow him....so i need the query....plzzzz zzComment
-
Originally posted by vaniKanabathyI know but i wan the altid at begining of the table. i just wan the query....my boss want it.....so i had 2 follow him....so i need the query....plzzzz zz
Regards,
FishComment
-
-
Hi. To be clear:
1. SQL code cannot alter the physical sequence of fields in a table definition
2. there is no reason to do so anyway, as you can provide virtual views of the fields in a table in any suitable order using SELECT and CREATE VIEW statements in SQL, and through the use of Access forms and reports for users
3. if you want to alter the physical ordering of fields in a table definition you can alter the ordinal position properties of the fields in the table definition as Fish has advised. This can only be done using VBA code; it cannot be done in SQL.
4. if you are not familiar with VBA and do not have sufficient understanding of the Data Access Objects (DAO) provided in VBA to manipulate recordsets, table definitions and so on you are not really in a position to take any of this further.
I hope you found the assistance provided useful. For me personally there is no more I can do to help you.
Regards
StewartComment
Comment