Microsoft
Software
Hardware
Network
Question : Extracting data from Main Form
I have a mainform called frmIncidents and a subform called sbfrmPeople. The subform has a command button that gets information from both the mainform and subform and enters it into variables which is then used in a sql statement.
There is a lookup on my mainform that stores Investigators IDs. I need to take the ID from the lookup and put it into the variable. This is the code I'm currently using:
Dim intInvestigatorID As Integer
intInvestigatorID = Me.intPrimaryInvestigator.
Value
What would be the correct syntax to take a value from a mainform and put it into a variable?
Please note: these are the controls and names involved (incase that helps to provide a syntax)
mainform: frmIncidents
subform: sbfrmPeople
variable: intInvestigatorID (integer)
lookup: intInvestigator
bound field: intPrimaryInvestagor (integer)
Answer : Extracting data from Main Form
From the subform, refer to the Parent:
SomeVariable = Me.Parent.YourControlName
Random Solutions
Drop Down Menu by C(LInux/Console Base)
Non-Domain users connecting to Exchange 2003 via Outlook 2003 getting continuously prompted for password.
What are the best programs that can download all of the pictures from a website (including all of a website's hyperlinks)?
tempdb.mdf SQL 2008
Manual Feed
VMWare ESXi v4 CPU resource allocation question
cannot connect to virtual machines in hyper-v console
enterprise vault doesn't work on a pc
Allow new subnet Internet Access through Cisco ASA
CSV export from a database