Share via

Need Syntax in Make Table Query to Create an Empty Text Field, Not Binary

Anonymous
2012-03-22T12:36:00+00:00

I have a Make-Table query that creates an empty field of data in my table with the following line in the 'Field' row:

ACES_Year: Null

When I run this and it creates a table, of course, it creates a blank field with the data type of 'Binary'. I have to go to design mode for that table and manually change the field to 'Text'. I have seen before a way to create a blank field that is automatically designated as type within the Make-table query, but I am pulling my hair our trying to find it again.

I am sure someone knows how to do it - please help!

Jen

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

ScottGem 68,830 Reputation points Volunteer Moderator
2012-03-22T14:58:29+00:00

Did you try:

ACES_Year: ""

Was this answer helpful?

3 people found this answer helpful.
0 comments No comments

Answer accepted by question author

Anonymous
2012-03-22T17:29:26+00:00

A good place to start is probably Crystal's Learn VBA tutorial at http://www.accessmvp.com/Strive4Peace/VBA.htm

Was this answer helpful?

0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Anonymous
    2012-03-22T17:19:37+00:00

    Thank you so much for your answer. Unfortunately I am not VB saavy and so I don't really know how to implement the suggestion above. Are you willing to let me know in more detail what you mean?

    This is an out-of-range request, because I know this isn't meant to be a training forum, so if it's complicated, I will completely understand. Perhaps you can direct me to somewhere that would help be understand very basic VB usage for MS Office products?

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2012-03-22T17:16:55+00:00

    Hooray!!! That's just what I was looking for. Thank you.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2012-03-22T14:08:35+00:00

    Why not add the field to the table after you've run the Make table query? It only takes a couple of lines of VBA:

    Dim tdf As DAO.TableDef

      Set tdf = CurrentDb.TableDefs("NameOfTable")

      With tdf

        .Fields.Append .CreateField("ACES_Year", dbText)

      End With

      Set tdf = Nothing

    Was this answer helpful?

    0 comments No comments