February 25, 200223 yr 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... (We don't allow duplicate posts of the same topic. I'm closing this thread. -bd) [ February 25, 2002, 06:15 PM: Message edited by: LiveOak ]
Create an account or sign in to comment