Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 8308 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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... crazy.gif

(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 ]

This topic is 8308 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.