Click here to Skip to main content
15,897,371 members
Home / Discussions / Database
   

Database

 
QuestionVBA combobox value Pin
scorp_scorp17-Jan-11 17:38
scorp_scorp17-Jan-11 17:38 
AnswerRe: VBA combobox value Pin
Prerak Patel17-Jan-11 21:17
professionalPrerak Patel17-Jan-11 21:17 
GeneralRe: VBA combobox value Pin
scorp_scorp18-Jan-11 17:06
scorp_scorp18-Jan-11 17:06 
QuestionMove table from one database to another database Pin
vanikanc17-Jan-11 5:18
vanikanc17-Jan-11 5:18 
AnswerRe: Move table from one database to another database Pin
Simon_Whale17-Jan-11 5:25
Simon_Whale17-Jan-11 5:25 
GeneralRe: Move table from one database to another database Pin
vanikanc17-Jan-11 5:27
vanikanc17-Jan-11 5:27 
GeneralRe: Move table from one database to another database Pin
Simon_Whale17-Jan-11 5:37
Simon_Whale17-Jan-11 5:37 
QuestionVBA access 2007 recordset Pin
scorp_scorp15-Jan-11 18:22
scorp_scorp15-Jan-11 18:22 
Dear all,
am doing the follows:

Public Function totalsumbycontract(a As String, b As Integer) As Double
Set classdb1 = CurrentDb()
set classrecset1 = classdb1.OpenRecordset("select unit_price from contract_details where contract_number = ' " & a & " ' ")
end function

where a is the contract number, and b is contract id. the problem is when am runnig the query by using contract number, it returns 0 records, while by contract id , it works fine.

Contract number is defined in table desig as TEXT, and id is defined as number. also if i run the query on the table it self by contract_number , it works fine.
only when am using the query in this code , its not working.

Dunno wahts the mistake i did?? and have no clue ?? its just a simple line of code Unsure | :~

Can any body guide ??
0 will always beats the 1.

AnswerRe: VBA access 2007 recordset Pin
Аslam Iqbal16-Jan-11 9:02
professionalАslam Iqbal16-Jan-11 9:02 
Questionhow do i get top 3 salaries among department, which is represented by employee with lowest 3 salaries (total 9 rows) Pin
HughJarce9915-Jan-11 10:44
HughJarce9915-Jan-11 10:44 
AnswerRe: how do i get top 3 salaries among department, which is represented by employee with lowest 3 salaries (total 9 rows) Pin
loyal ginger15-Jan-11 17:16
loyal ginger15-Jan-11 17:16 
AnswerRe: how do i get top 3 salaries among department, which is represented by employee with lowest 3 salaries (total 9 rows) Pin
decipher1234517-Jan-11 1:26
decipher1234517-Jan-11 1:26 
AnswerRe: how do i get top 3 salaries among department, which is represented by employee with lowest 3 salaries (total 9 rows) Pin
Hiren solanki17-Jan-11 2:23
Hiren solanki17-Jan-11 2:23 
Questionget data in financial year in sql Pin
Thanusree Duth14-Jan-11 22:56
Thanusree Duth14-Jan-11 22:56 
AnswerRe: get data in financial year in sql Pin
Estys14-Jan-11 23:36
Estys14-Jan-11 23:36 
AnswerRe: get data in financial year in sql Pin
Mycroft Holmes16-Jan-11 13:51
professionalMycroft Holmes16-Jan-11 13:51 
QuestionCannot Connect To Database? Pin
Dominick Marciano14-Jan-11 6:05
professionalDominick Marciano14-Jan-11 6:05 
AnswerRe: Cannot Connect To Database? Pin
David Mujica14-Jan-11 7:09
David Mujica14-Jan-11 7:09 
AnswerRe: Cannot Connect To Database? Pin
jschell14-Jan-11 10:26
jschell14-Jan-11 10:26 
QuestionHow it is Better to Store Multiple Options Pin
Richard Andrew x6413-Jan-11 14:41
professionalRichard Andrew x6413-Jan-11 14:41 
AnswerRe: How it is Better to Store Multiple Options Pin
PIEBALDconsult13-Jan-11 15:18
mvePIEBALDconsult13-Jan-11 15:18 
AnswerRe: How it is Better to Store Multiple Options Pin
Eddy Vluggen14-Jan-11 0:44
professionalEddy Vluggen14-Jan-11 0:44 
GeneralRe: How it is Better to Store Multiple Options Pin
Richard Andrew x6414-Jan-11 3:41
professionalRichard Andrew x6414-Jan-11 3:41 
GeneralRe: How it is Better to Store Multiple Options Pin
Luc Pattyn14-Jan-11 3:50
sitebuilderLuc Pattyn14-Jan-11 3:50 
GeneralRe: How it is Better to Store Multiple Options Pin
jschell14-Jan-11 10:29
jschell14-Jan-11 10:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.