Ace1000
Member
- Joined
- Aug 29, 2015
- Messages
- 8
- Programming Experience
- 1-3
I have Visual Studio 2015 Express with SQL Server Express 2014
I am new to .NET but have solid experience with Access/VBA.
I have dragged and dropped fields from tblProductDetails in my Datasource tab into Form1 to create bound fields.
Now I am struggling with two things.
ISSUE #1. Going to a specific record from another form.
--------------------------------------------------------------------------
Form1 has textbox (txtProductID) where I can type an integer.
Form1 has a button which when clicked opens Form2 (frmProductDetails) that has the bound form fields from table (tblProductDetails).
I know how to pass the value in txtProductID in Form1 to Form2.
However, I don't know how to pull all the data for this specific ProductID. eg...suppose I wish to see the details for ProductID=15
Form2 currently opens the 1st record (ProductID = 1) in tblProductDetails.
I have VBA/Access experience so I just need a general direction.
ISSUE #2. Update table upon change in form.
--------------------------------------------------------------------
The bound Form2 does not update when I change data in the dropdowns and textboxes.
Do I need to write further code to update the underlying table when I update the values in the fields in Form2?
Are there setups in design-time that can do this job?
Thanks in advance.
I am new to .NET but have solid experience with Access/VBA.
I have dragged and dropped fields from tblProductDetails in my Datasource tab into Form1 to create bound fields.
Now I am struggling with two things.
ISSUE #1. Going to a specific record from another form.
--------------------------------------------------------------------------
Form1 has textbox (txtProductID) where I can type an integer.
Form1 has a button which when clicked opens Form2 (frmProductDetails) that has the bound form fields from table (tblProductDetails).
I know how to pass the value in txtProductID in Form1 to Form2.
However, I don't know how to pull all the data for this specific ProductID. eg...suppose I wish to see the details for ProductID=15
Form2 currently opens the 1st record (ProductID = 1) in tblProductDetails.
I have VBA/Access experience so I just need a general direction.
ISSUE #2. Update table upon change in form.
--------------------------------------------------------------------
The bound Form2 does not update when I change data in the dropdowns and textboxes.
Do I need to write further code to update the underlying table when I update the values in the fields in Form2?
Are there setups in design-time that can do this job?
Thanks in advance.