Computers & Internet Logo

Related Topics:

Posted on Dec 10, 2008
Answered by a Fixya Expert

Trustworthy Expert Solutions

At Fixya.com, our trusted experts are meticulously vetted and possess extensive experience in their respective fields. Backed by a community of knowledgeable professionals, our platform ensures that the solutions provided are thoroughly researched and validated.

View Our Top Experts

Vb variable error

I am connecting access database named company.mdb having fields COM_CODE, COMPANY, ADD1, ADD2, ADD3, ADD4, BOOK, PAGE

while running program all fields data but the field add2, add3, book & page showing error.

my code is below, kindly suggeste me for what is wrong in coding.

Dim strdb As Database
Dim strrs As Recordset
Private Sub EXIT_Click()
Unload Me
End Sub
Private Sub Form_Load()
Dim strdbname As String
Dim strrsname As String
strdbname = "d:\vivek\company.mdb"
strrsname = "company"
Set DB = DBEngine.OpenDatabase("D:\VIVEK\COMPANY.MDB")
Set RS = DB.OpenRecordset("COMPANY")
comp.Text = RS!COM_CODE
compnm.Text = RS!COMPANY
isinno.Text = RS!ISIN
AD1.Text = RS!ADD1
'AD2.Text = RS!ADD2
'AD3.Text = RS!ADD3
AD4.Text = RS!ADD4
BK.Text = RS!BOOK
'PG.Text = RS!Page
End Sub

2 Answers

wisiny.com

Level 3:

An expert who has achieved level 3 by getting 1000 points

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

Renaissance:

An user who is expert in 3 categories / brands.

  • Master 848 Answers
  • Posted on Jan 15, 2015
wisiny.com
Master
Level 3:

An expert who has achieved level 3 by getting 1000 points

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

Renaissance:

An user who is expert in 3 categories / brands.

Joined: Jun 02, 2013
Answers
848
Questions
0
Helped
459855
Points
4753

Vb variable error? This trouble maybe power supply or inverter boards is defective.
first you can test the voltage of the multr,and then check which part is defective.From Wisiny.com can find those parts
if you have any question,please let us know email:service@wisiny.com.thanks,we sincerely hope we can help you!
you can also check this boards whether suit you:
742GL2 715G2538 3 LEG Lenovo ADTV742GL2 Power Supply Backlight Inverter...

Anonymous

Level 3:

An expert who has achieved level 3 by getting 1000 points

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

Brigadier General:

An expert that has over 10,000 points.

  • Master 10,406 Answers
  • Posted on Dec 02, 2009
Anonymous
Master
Level 3:

An expert who has achieved level 3 by getting 1000 points

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

Brigadier General:

An expert that has over 10,000 points.

Joined: Apr 23, 2009
Answers
10406
Questions
1
Helped
2599334
Points
31058

Change the code:

strdbname = "d:\vivek\company.mdb"
Set DB = DBEngine.OpenDatabase("D:\VIVEK\COMPANY.MDB")
strrsname = "company"
Set RS = DB.OpenRecordset("COMPANY")
comp.Text = RS!COM_CODE
compnm.Text = RS!COMPANY
isinno.Text = RS!ISIN
AD1.Text = RS!ADD1
'AD2.Text = RS!ADD2
'AD3.Text = RS!ADD3
AD4.Text = RS!ADD4
BK.Text = RS!BOOK
'PG.Text = RS!Page
to become:

strdbname = "d:\vivek\company.mdb"
Set DB = DBEngine.OpenDatabase(strdbname )
strrsname = "company"
Set RS = DB.OpenRecordset(strrsname )
comp.Text = RS!COM_CODE
compnm.Text = RS!COMPANY
isinno.Text = RS!ISIN
AD1.Text = RS!ADD1
AD2.Text = RS!ADD2
AD3.Text = RS!ADD3
AD4.Text = RS!ADD4
BK.Text = RS!BOOK
PG.Text = RS!Page
mostly to eliminate the extra "quote" (') characters,
and to use the values you set.


Ad

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

349 views

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

ADMIN Andrew
ADMIN Andrew

Level 3 Expert

73781 Answers

ADMIN Eric
ADMIN Eric

Level 3 Expert

42221 Answers

Brad Brown

Level 3 Expert

19190 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...