Now, I can create my remote view programically (save as create_view.prg)
However, everytime I run the create_view.prg,
there is a dialog box prompt out , i need to press "OK" , otherwise, the
remote cannot be created.
It is very troublsome for the user .
Can anyone how to solve it ??
Thanks in advance
From agnes
My code is shown as below.
OPEN DATABASE u:\cgl\vfpseafreight\data\transport.dbc
IF INDBC("t_data","connection") = .F.
CREATE CONNECTION t_data;
connstring ;
'Driver={Microsoft Visual Foxpro
Driver};DBQ=u:\cgl\vfpseafreight\data\transport.dbc;BackgroundFetch=Yes'
ENDIF
IF INDBC("tview","VIEW") = .F.
CREATE sql VIEW tview remote CONNECTION t_data AS SELECT
number,jobno,closesw FROM billLadingHeader order by number
ENDIF