DOSPLUS
New member
- Local time
- Today, 04:09
- Joined
- Oct 28, 2023
- Messages
- 27
Hi you all. Thanks again for giving me pointers as I am trying to figure this out.
The setup is coming along. But I am hitting a problem. I am creating a table from vba with the required fields and it works fine, but I am unable to create a field in a combo list style to put in my heading values list for the mapping.
How can I identify the field created in my table as combo list and place the value list in it??
Regards,
The setup is coming along. But I am hitting a problem. I am creating a table from vba with the required fields and it works fine, but I am unable to create a field in a combo list style to put in my heading values list for the mapping.
Code:
' Create the mapping table
Set strCreateTable = CurrentDb.CreateTableDef(strMappingTable)
' Adding table fields to request
strCreateTable.Fields.Append strCreateTable.CreateField("AutoID", dbInteger)
strCreateTable.Fields.Append strCreateTable.CreateField("TargetTbl", dbText)
strCreateTable.Fields.Append strCreateTable.CreateField("SourceTbl", dbText)
' Process the request
CurrentDb.TableDefs.Append strCreateTable
Application.RefreshDatabaseWindow
How can I identify the field created in my table as combo list and place the value list in it??
Regards,
Last edited: