|
-
Mar 8th, 2001, 12:39 PM
#1
Thread Starter
Addicted Member
This is what I want to do, and logically, this would seem to work, but it doesn't. I want the first field name to be a variable.
rsd.AddNew
Name = ("rsd!" + strComboBox)
Name = strComboContents
rsd!contact = frmForm!cboContact.Text
rsd!Phone = frmForm!mskPhone
rsd!extension = frmForm!txtExtension
rsd!fax = frmForm!mskFax
rsd!Email = frmForm!txtEmail
rsd.Update
Any suggestions on how to do this?
Normal is boring...
 smh 
-
Mar 8th, 2001, 04:22 PM
#2
New Member
Variable Field Name
How about this?
Dim TempStr as string
Tempstr = strComboBox
rsd.fields(Tempstr) = strComboContents
I'm not sure why your trying to make the recordset
a variable...I'm guessing your trying to make the field
name a variable...
Hope this helps...
-
Mar 8th, 2001, 04:33 PM
#3
Thread Starter
Addicted Member
I tried something similar to that, and it's actually looking for the variable name as the field. I just ended up using a case statement instead of using a variable.
Thanks anyway!
Normal is boring...
 smh 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|