Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Field Name in Table 1

Status
Not open for further replies.

deejay33

IS-IT--Management
May 30, 2002
147
US
Hello All,

I need to change a field name and type in on of our tables. It will go from a Y/N to character. Is there anyway to get a list of all the tables and forms that the field is used in? That way I can go in and fix all of the queries the changed name will break.

Thanks for that help!

Daniel Joaquin
 
SELECT * FROM MSysQueries WHERE Expression LIKE '*YourFieldName*'
 
Actually, this would work better...it gives you the name of the query...

SELECT MSysObjects.Name, *
FROM MSysQueries INNER JOIN MSysObjects ON MSysQueries.ObjectId = MSysObjects.Id
WHERE (((MSysQueries.Expression) Like '*YourFieldName*'));
 
Wow that worked great! Thanks so much!

Daniel Joaquin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top