A
Andrew Hollis
I found a sample database (NotSoComplex) that had a really cool subform
selection layout for a many-to-many database. I'm trying to get my database
to have the same subform. I copied the file in "Modules" section to my
database, and followed the instructions in it to the best of my abilities by
copying and pasting in the "code builder part of the form. I ended up with
something like this:
Private Sub Form_Load()
Set MyList = New MtoMListHandler
With MyList
Set .OptionList = RegList
Set .AddButton = AddReg
Set .DeleteButton = DeleteReg
Set .AddCombo = CmbReg
Set .ComboMask = MskReg
.LookupTable = "Regulations"
.JunctionTable = "Rev-Regs"
.MasterPK = "RevID"
.MasterFK = "JRevID"
.LookupPK = "RegID"
.LookupFK = "JRegs"
.LookupText = "Regulation Number"
.UseNotInListHandler = True
.ProperCaseNewListItems = True ' causes the NewData to be
converted to proper case
.NotInListForm = Regsform
End With
End Sub
Everytime I try to run it, though, I get an error that says: "User defined
type not defined", and It highlights a line of cade from the module I copied.
Does anyone have any advice on how I can get it running?
selection layout for a many-to-many database. I'm trying to get my database
to have the same subform. I copied the file in "Modules" section to my
database, and followed the instructions in it to the best of my abilities by
copying and pasting in the "code builder part of the form. I ended up with
something like this:
Private Sub Form_Load()
Set MyList = New MtoMListHandler
With MyList
Set .OptionList = RegList
Set .AddButton = AddReg
Set .DeleteButton = DeleteReg
Set .AddCombo = CmbReg
Set .ComboMask = MskReg
.LookupTable = "Regulations"
.JunctionTable = "Rev-Regs"
.MasterPK = "RevID"
.MasterFK = "JRevID"
.LookupPK = "RegID"
.LookupFK = "JRegs"
.LookupText = "Regulation Number"
.UseNotInListHandler = True
.ProperCaseNewListItems = True ' causes the NewData to be
converted to proper case
.NotInListForm = Regsform
End With
End Sub
Everytime I try to run it, though, I get an error that says: "User defined
type not defined", and It highlights a line of cade from the module I copied.
Does anyone have any advice on how I can get it running?