Find Record From Search Form

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I am in the process of developing new front end program for SQL
database to replace MS Access front end. I have been unable to
convert the following lines of VBA to C# to find a record in the
workorder dataset from a seperate form based on query presented in
datagridview. I open the workorder form, then click on search form,
then double click the line in datagridview to focus back on workorder
to the selected record by workorderID.

If IsNull(Forms![Search SO Open]![List0]) Then
MsgBox ("You did not select a record to search for")
Else
DoCmd.SelectObject acForm, "Work Orders"
DoCmd.GoToControl "WorkOrderID"
DoCmd.FindRecord [Forms]![Search SO Open]![List0], acEntire,
False, acDown, False, acCurrent
DoCmd.SelectObject acForm, "Work Orders"
DoCmd.GoToControl "WorkOrderID"
DoCmd.Close acForm, "Search SO Open"
End If


Any help or guidance is greatly appreciated and thank you in advance.


BD

.



Relevant Pages

  • Search Form
    ... I open the workorder form, then click on search form, ... then double click the line in datagridview to focus back on workorder ... DoCmd.SelectObject acForm, "Work Orders" ...
    (microsoft.public.access.formscoding)
  • Copy Close record
    ... I'm working in a Work orders tracking system. ... a table (workorder) to keep all the work orders. ... I did by query but ask me all the time if I want to do that. ...
    (microsoft.public.access.gettingstarted)