Hard Shifting on 2002 Volkswagen Beetle TDI

Rookie cbe0621eac06868b3efe0d8d1d3611e23c60d3114864ea2ec19a68cfbd3eebab
I just bought a 2002 New Beetle TDI. So new to me that its still on its way to my house via my boyfriend driving it. He is really good at fixing car problems once we know what the exact problem is. What I know is that according to the dealer that we bought the car from he had the transmission replaced but was still getting the code P0740. From what I have been able to find out this sounds like it is the ASV Stolenoid. Does this sound right. At lower speeds it shifts ok, not the greatest, but once it hits 4th it really has a hard time shifting. Is it ok to drive for another 430 miles until he gets it home to work on it or should we hire someone on the way to try and fix the problem. Also could it be related to relay 109 which I know can cause several errors and may be triggering this one. Any advice and help would be great in this matter. Thanks to all who are able to answer my question.
(1) Answer
(2) Comments
P0740 is typically a Torque Converter Clutch operational failure code. This means that the torque converter clutch has shown to be failing, either due to a solenoid issue or the clutch itself. If the transmission was rebuilt, perhaps that part was omitted or faulty in operation. If the installed transmission was a remanufactured unit, hopefully there is some kind of warranty still in effect.

I don't see a relay of any kind relating to this issue. This is an internal mechanical failure according to the guides I'm reading.

Seems like he is experiencing shifting problems actively - certainly there will be major repairs upon his arrival.
I noticed in my question I didn't say it was an automatic transmission. Would this problem be the same with an automatic?
This could only happen for an automatic. Manual transmissions do not have torque converters, torque converter clutches or electronics that would produce a diagnostic trouble code like P0740.