vfp联机共用数据库
请问各位能否在两台机器间局域网联机共用一个数据库
不太明白呀 我是想利用查询表单查询 这个共享的数据库代码是下面的代码 毕业生是共享的数据库 怎么打开??
SET DELETED ON
SET TALK OFF
SET SAFETY OFF
IF EMPTY(thisform.text1.Value)
=MESSAGEBOX('请输入身份证号',64,'提示')
thisform.text1.SetFocus
RETURN
ENDIF
SELE 毕业生
*SELECT * FROM 毕业生 WHERE ALLTRIM(身份证号)==ALLTRIM(thisform.text1.Value)
LOCA FOR ALLT(身份证号)==ALLT(THISFORM.TEXT1.VALUE)
IF FOUND()
THISFORM.GRID1.SETFOCUS
ELSE
MESSAGEBOX('查无此毕业生,请检查身份证输入是否正确?')
ENDIF
THISFORM.REFRESH
LOCAL query_tmp1
query_tmp1=thisform.grid1.RecordSource
ZAP IN (query_tmp1)
INSERT INTO (query_tmp1) SELECT * FROM 毕业生 WHERE 身份证号==ALLTRIM(thisform.text1.Value)
GO TOP IN (query_tmp1)
*thisform.grid1.AutoFit
thisform.Refresh