DSLfuel Posted February 25, 2002 Posted February 25, 2002 I've got a VB program that currently opens an ODBC connection to FileMaker and finds a particular record. The program then pulls the feild data out of the database and performs particular functions. I'd like to start using the same program to create new records and change field values. However, the feild values aren't changing when the program runs, even though I can see that the feilds are being accessed line by line. Has anyone else run across a similar issue. Here is the code I'm using to access FM: Set cn = New ADODB.Connection Set rs = New ADODB.Recordset Set cm = New ADODB.Command cn.Open "Provider=MSDASQL.1;Data Source=FMTest;database=myDatabase.fp5 cn.CursorLocation = adUseServer rs.CursorType = adOpenStatic rs.LockType = adLockBatchOptimistic rs.Open "Select * from myDatabase where myDatabaseValue = '" & strDCN & "'", cn rs.fields(ContactEmail).value = "[email protected]" I can get the value out of the field but can't set it using the same code. Ah the simple joys of ODBC and FileMaker...
Recommended Posts
This topic is 8305 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now