Access to Sql Server Question 2 (1 Viewer)

zezo2021

Member
Local time
Today, 02:28
Joined
Mar 25, 2021
Messages
381
Friends

I move the access to the backend SQL server
my problem is:
Multivalued field

How can I move the Multivalued field to the SQL server table?

I'm using access as the front end and SQL Server as backend
 

cheekybuddha

AWF VIP
Local time
Today, 01:28
Joined
Jul 21, 2014
Messages
2,276
SQL Server does not understand a multi-valued field.

You will have to create a child table with the lookup values and another table to link the two (sometimes called a junction table) that has fields for the PK of the main table and the lookup value.
 

zezo2021

Member
Local time
Today, 02:28
Joined
Mar 25, 2021
Messages
381
Thank you for the answer
 

Auntiejack56

Registered User.
Local time
Today, 10:28
Joined
Aug 7, 2017
Messages
175
There is a method for resolving this here: https://www.bluebridge.com.au/KnowledgeBaseMenu.html

There are multiple steps involved in setting it up, but it works for any number of different combos in your db that use an Access multi-select. There is a sample db to download that has all the code. Disclosure: I'm the director at BlueBridge.
 

MajP

You've got your good things, and you've got mine.
Local time
Yesterday, 20:28
Joined
May 21, 2018
Messages
8,527
Here is a free way to fake a MVF. As stated you have to make the junction table. I could not download the above demo, but this approach looks kind of similar. There is not much code required except you have to write the insert queries. I could not think of a generic way to do it.
 

Users who are viewing this thread

Top Bottom