Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Editing fields in FM with ODBC

Featured Replies

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 ]

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.