Advertisement

06.21.2008 at 06:39PM PDT, ID: 23505234
[x]
Attachment Details

How do I programmatically add text to the description column in table design?

Asked by bobbat in Access Forms, Microsoft Access Database

I could just open the table in design view and add the text manually to the description column, but how can I do it programmatically?

I use the following code to change table field names programatically:
Private Sub cmdUpdateSuppliersTable_Click()
. . .
    z = ChangeFieldName("tblSuppliers", "State Tax ID", "strStateTaxID")
. . .
End Sub
                                            and. . .
Public Function ChangeFieldName(strTableName As String, strOldFieldName As String, strNewFieldName As String)
   Dim db As DAO.Database
   Dim tdf As DAO.TableDef
      Set db = CurrentDb
   Set tdf = db.TableDefs(strTableName)  
   tdf(strOldFieldName).Name = strNewFieldName
      Set tdf = Nothing
   Set db = Nothing
End FunctionStart Free Trial
[+][-]06.21.2008 at 09:18PM PDT, ID: 21839670

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.22.2008 at 09:38AM PDT, ID: 21841286

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.22.2008 at 09:56AM PDT, ID: 21841360

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.22.2008 at 10:09AM PDT, ID: 21841411

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.22.2008 at 10:14AM PDT, ID: 21841423

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.22.2008 at 11:53AM PDT, ID: 21841737

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Access Forms, Microsoft Access Database
Sign Up Now!
Solution Provided By: capricorn1
Participating Experts: 4
Solution Grade: A
 
 
[+][-]06.22.2008 at 01:04PM PDT, ID: 21841997

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.22.2008 at 01:05PM PDT, ID: 21842003

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.22.2008 at 01:34PM PDT, ID: 21842109

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.22.2008 at 01:40PM PDT, ID: 21842126

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.22.2008 at 01:45PM PDT, ID: 21842136

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.22.2008 at 01:55PM PDT, ID: 21842173

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.22.2008 at 01:56PM PDT, ID: 21842179

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628