Backend Sql Server 2008, front end access 2007.
I have a page of VBA code which creates a new record using a SQL Insert Into statement writing to the underlying dbo_PropertyYearDetail table. The Sql query works fine. But now I need to add 7 fields from another SQL table called dbo_FeeScheduleLookup table. I then need to pull the 7 values from the Lookup table into my VBA page as 7 variables. Then I can edit them into the SQL Insert Into statement and append everything at one time.
I think this can be achieved by creating a recordset in VBA and pulling the field values from the Lookup Table into variables. The only part I need help with is creating the recordset to pull the 7 fields and assign them to variables. The 7 fields contain percentages if that makes any difference.
I've read everything I can find and I'm just not getting it. Can someone show me some sample code that might work?
Thanks
Fred