I think I got an idea for this dude...

Get your assambly to be a dll in C#, and compile it to be COM visible,
you have to set a GUID to your classes... and it will give you a lib
(or was it tlb?) that you can use from old VB versions (tested on VB
6.0), now if I remember well... you can write the code for those
Access forms in VB, so make them to call your assambly, that means
that you will add a reference to that lib/tlb file. I think you need
to add your assambly to the GAC too, not sure though.

I haven't done that myself beyond experimentation, and I'm not a big
fan of that approach, I'm not sure if it's ok for access, but I think
it will do.

Google something on COM Visible with C#

If I were you, I'd be doing my interface again, and using some
ADO.NET... I know that that's not perfect either, but it will make
things easier to maintain later.

Theraot.

On 17 mayo, 10:26, paul <[email protected]> wrote:
> Hi
>
> I'm fairly new to this so forgive me if this is a ridiculous
> question...
>
> I'm in the process of converting an Access UI to C# and have recreated
> one of the main forms in C# and connected to the Access DB. However,
> rather than recreating the whole front end, at this stage i'd like to
> be able open the form from the existing Access search screen i.e. pass
> the C# form the value selected from the previous Access form to use as
> the criteria for the forms recordsource.
>
> Is this possible? if so can anyone point me in the right direction of
> how to go about this?
>
> Thanks for any suggestions.
> Paul

Reply via email to