May 3, 2002 #1 briglass Programmer Dec 4, 2001 179 GB I get an error when my Visual Basic project reaches this line: dbNames![id] = idchange it also doesn't like dbNames![id] = val(idchange) I must not be doing this right, any hints?
I get an error when my Visual Basic project reaches this line: dbNames![id] = idchange it also doesn't like dbNames![id] = val(idchange) I must not be doing this right, any hints?
May 3, 2002 1 #2 jebry Programmer Aug 6, 2001 3,006 US Hi! We need a little more information. What is dbNames, [id] and idchange? It may be easiest to just post the code you have. Jeff Bridgham bridgham@purdue.edu Upvote 0 Downvote
Hi! We need a little more information. What is dbNames, [id] and idchange? It may be easiest to just post the code you have. Jeff Bridgham bridgham@purdue.edu
May 3, 2002 Thread starter #3 briglass Programmer Dec 4, 2001 179 GB '(id is a field of the table Names) set dbNames = db.OpenRecordset("Names", dbOpenDynaset) inputchange = Val(InputBox("What number?", "Change", dbNames![id])) dbNames![id] = inputchange 'or dbNames![id] = Val(inputchange) Make sense? Upvote 0 Downvote
'(id is a field of the table Names) set dbNames = db.OpenRecordset("Names", dbOpenDynaset) inputchange = Val(InputBox("What number?", "Change", dbNames![id])) dbNames![id] = inputchange 'or dbNames![id] = Val(inputchange) Make sense?
May 3, 2002 #4 jebry Programmer Aug 6, 2001 3,006 US Hi! Yes this makes sense, try this: dbNames.Edit dbNames![id] = inputchange dbNames.Update hth Jeff Bridgham bridgham@purdue.edu Upvote 0 Downvote
Hi! Yes this makes sense, try this: dbNames.Edit dbNames![id] = inputchange dbNames.Update hth Jeff Bridgham bridgham@purdue.edu